/* ==================================================================
   @elqorix. — guns.lol-inspired 3D profile card
   monochrome, rounded, single card, no frameworks.
   ================================================================== */

:root {
  --bg: #000000;
  --panel: #0a0a0a;
  --panel-2: #111111;
  --border: #232323;
  --border-soft: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.24);
  --text: #ffffff;
  --muted: #a3a3a3;
  --dim: #6b6b6b;
  --faint: #454545;
  --white: #ffffff;
  --max: 680px;
  --radius: 26px;
  --radius-pill: 999px;
  --sans: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

::selection {
  background: var(--white);
  color: #000000;
}

/* ------------------------------------------------------------------
   background: starfield + uploaded video
   ------------------------------------------------------------------ */

#starfield {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.34;
  transition: opacity 0.6s ease;
}

body.has-video #starfield {
  opacity: 0.16;
}

.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000000;
  pointer-events: none;
  /* melt the outer edges of the footage into the page black */
  -webkit-mask-image: radial-gradient(118% 102% at 50% 46%, #000 56%, rgba(0, 0, 0, 0.72) 76%, transparent 97%);
  mask-image: radial-gradient(118% 102% at 50% 46%, #000 56%, rgba(0, 0, 0, 0.72) 76%, transparent 97%);
}

.bg-video[hidden] {
  display: none;
}

/* parallax plane — moved by cursor via --bgvx/--bgvy (set in site.js) */
.bg-video-motion {
  position: absolute;
  inset: -3.5%;
  transform: translate3d(var(--bgvx, 0px), var(--bgvy, 0px), 0);
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* duotone: strip color and dim so footage sits inside the monochrome theme */
  filter: grayscale(1) saturate(0) contrast(1.08) brightness(0.42);
  transform: scale(1.02);
  animation: bg-drift 55s ease-in-out infinite alternate;
  will-change: transform;
  transition: opacity 1.2s ease;
}

.bg-video.is-ready video {
  opacity: 0.85;
}

/* brief dip right before the loop cut — hides the hard seam */
.bg-video.loop-dip video {
  opacity: 0.62;
  transition: opacity 0.22s ease;
}

/* slow cinematic drift */
@keyframes bg-drift {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.085);
  }
}

/* vignette that ties the footage into the black frame and protects text */
.bg-video-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 96% at 50% 42%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.5) 74%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.12) 26%, rgba(0, 0, 0, 0.5) 96%),
    radial-gradient(ellipse 60% 44% at 50% 108%, rgba(104, 114, 132, 0.10), transparent 72%);
  mix-blend-mode: multiply;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .bg-video video {
    animation: none;
    transform: scale(1.02);
  }

  .bg-video-motion {
    transform: none !important;
    transition: none;
  }
}

.bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000000;
  pointer-events: none;
}

.bg-image[hidden] {
  display: none;
}

.bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: scale(1.01);
}

.bg-image-scrim {
  display: none !important;
}

body.has-image #starfield {
  opacity: 0.13;
}

/* Background presets (owner-selectable, applied for everyone) */

.bg-preset {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-preset[data-preset="stars"] {
  display: none;
}

.bg-preset[data-preset="grid"] {
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000000 8%, transparent 76%);
  mask-image: radial-gradient(ellipse at 50% 42%, #000000 8%, transparent 76%);
}

.bg-preset[data-preset="beam"] {
  background:
    radial-gradient(ellipse 65% 50% at 50% -5%, rgba(255, 255, 255, 0.16), transparent 72%),
    radial-gradient(ellipse 45% 40% at 85% 105%, rgba(255, 255, 255, 0.05), transparent 72%);
}

.bg-preset[data-preset="solid"] {
  background: #000000;
}

/* soft light bloom that blends the background layers together */
.bg-aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 16% 4%, rgba(136, 148, 166, 0.10), transparent 72%),
    radial-gradient(48% 42% at 88% 10%, rgba(255, 255, 255, 0.055), transparent 74%),
    radial-gradient(70% 60% at 50% 104%, rgba(104, 114, 132, 0.09), transparent 70%);
  mix-blend-mode: screen;
}

body[data-bg="solid"] .bg-aura {
  display: none;
}

body[data-bg="solid"] #starfield {
  display: none;
}

/* ------------------------------------------------------------------
   page frame
   ------------------------------------------------------------------ */

.stage {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(100vh - 58px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 22px 26px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 6px 10px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.est-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  margin: 0 0 20px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(14, 14, 16, 0.65);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  color: #e6e6e6;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.est-time:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(20, 20, 24, 0.78);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.est-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.75);
  animation: estPulseDot 2.4s ease-in-out infinite;
  flex: 0 0 auto;
}

@keyframes estPulseDot {
  0%, 100% {
    opacity: 0.95;
    transform: scale(1);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.75);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
    box-shadow: 0 0 2px rgba(34, 197, 94, 0.3);
  }
}

.est-text {
  display: inline-block;
}

/* ------------------------------------------------------------------
   profile card / 3d scene
   ------------------------------------------------------------------ */

.profile-scene {
  width: min(100%, var(--max));
  perspective: 1500px;
  perspective-origin: 50% 42%;
  animation: sceneIn 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes sceneIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.982);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.profile-card {
  position: relative;
  border-radius: var(--radius);
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
}

.card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, 0.07), transparent 58%),
    linear-gradient(150deg, rgba(20, 20, 23, 0.9), rgba(10, 10, 12, 0.94));
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.78),
    0 0 54px rgba(255, 255, 255, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.card-bg::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(560px 240px at 10% 0%, rgba(255, 255, 255, 0.055), transparent 64%),
    radial-gradient(520px 300px at 100% 102%, rgba(255, 255, 255, 0.028), transparent 66%);
  content: "";
  pointer-events: none;
}

.card-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(
    540px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.09),
    transparent 46%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
}

.profile-card:hover .card-shine {
  opacity: 1;
}

.card-platform {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #555555;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateZ(14px);
}

.card-platform svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.card-inner {
  position: relative;
  z-index: 2;
  padding: 26px 28px 20px;
  transform-style: preserve-3d;
}

/* ------------------------------------------------------------------
   profile block
   ------------------------------------------------------------------ */

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: center;
  transform-style: preserve-3d;
}

.profile-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  transform-style: preserve-3d;
}

.avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  transform: translateZ(48px);
  transform-style: preserve-3d;
}

.avatar-ring {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f2f2f2, #6e6e6e 55%, #2a2a2a);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 34px rgba(255, 255, 255, 0.1),
    0 14px 34px rgba(0, 0, 0, 0.62);
  place-items: center;
}

.avatar-img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid #090909;
  border-radius: 50%;
  background: #111111;
}

.avatar-img > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-decoration {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: contain;
  pointer-events: none;
}

.avatar-decoration[hidden] {
  display: none;
}

.presence-dot {
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 17px;
  height: 17px;
  border: 3px solid #090909;
  border-radius: 50%;
  --dot-color: #80848e;
  --dot-glow: rgba(128, 132, 142, 0.42);
  --dot-ring: rgba(128, 132, 142, 0.3);
  background: var(--dot-color);
  box-shadow: 0 0 13px var(--dot-glow);
  animation: presencePulse 2.8s ease-out infinite;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.presence-dot.status-online {
  --dot-color: #23a55a;
  --dot-glow: rgba(35, 165, 90, 0.5);
  --dot-ring: rgba(35, 165, 90, 0.34);
}

.presence-dot.status-idle {
  --dot-color: #f0b232;
  --dot-glow: rgba(240, 178, 50, 0.46);
  --dot-ring: rgba(240, 178, 50, 0.3);
}

.presence-dot.status-dnd {
  --dot-color: #f23f43;
  --dot-glow: rgba(242, 63, 67, 0.48);
  --dot-ring: rgba(242, 63, 67, 0.32);
}

.presence-dot.status-offline {
  --dot-color: #7d818c;
  --dot-glow: rgba(125, 129, 140, 0.3);
  animation: none;
}

.presence-dot.status-unknown {
  background: #1b1b1b;
  border-color: #4a4a4a;
  box-shadow: none;
  animation: none;
}

@keyframes presencePulse {
  0% {
    box-shadow: 0 0 0 0 var(--dot-ring), 0 0 13px var(--dot-glow);
  }
  60%,
  100% {
    box-shadow: 0 0 0 7px transparent, 0 0 13px var(--dot-glow);
  }
}

.profile-copy {
  min-width: 0;
  transform: translateZ(30px);
}

.name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.profile-name {
  margin: 0;
  font-size: clamp(1.85rem, 4.2vw, 2.55rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.profile-badges {
  display: flex;
  min-height: 20px;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.profile-badges:empty {
  display: none;
}

.badge {
  display: inline-flex;
  height: 20px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid #2b2b2b;
  border-radius: 7px;
  background: #0d0d0d;
  color: #9d9d9d;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f0f0f0;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.38));
  place-items: center;
}

.badge-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.profile-handle {
  min-height: 18px;
  margin: 7px 0 0;
  color: #7a7a7a;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.015em;
}

.cursor {
  display: inline-block;
  width: 6px;
  height: 1em;
  margin-left: 2px;
  background: var(--white);
  vertical-align: -0.12em;
  animation: blink 1s steps(1) infinite;
}

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

.profile-joined {
  margin: 5px 0 0;
  color: #626262;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.025em;
}

.profile-bio {
  max-width: 355px;
  margin: 10px 0 0;
  overflow: hidden;
  color: #bbbbbb;
  font-size: 13px;
  line-height: 1.55;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

/* ------------------------------------------------------------------
   elqorix ai button
   ------------------------------------------------------------------ */

.product-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  transform-style: preserve-3d;
}

.ai-button {
  display: flex;
  min-height: 80px;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: linear-gradient(145deg, #111111, #080808);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  text-align: left;
  transform: translateZ(40px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.ai-button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.52),
    0 0 30px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.065);
  transform: translateZ(40px) translateY(-2px);
}

.ai-icon {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #eeeeee;
  color: #090909;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.17);
  place-items: center;
}

.ai-icon img {
  width: 33px;
  height: 33px;
  object-fit: contain;
}

.bot-icon {
  background: #5865f2;
  color: #ffffff;
  box-shadow: 0 0 24px rgba(88, 101, 242, 0.3);
}

.bot-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-copy {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.ai-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-copy small {
  overflow: hidden;
  color: #666666;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ai-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  color: #a8a8a8;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  place-items: center;
}

.ai-arrow svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ai-button:hover .ai-arrow {
  border-color: transparent;
  background: #ffffff;
  color: #000000;
}

/* ------------------------------------------------------------------
   card footer: copy tag chip + unified social links
   ------------------------------------------------------------------ */

.card-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  transform: translateZ(20px);
}

.card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  color: #c4c4c4;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.copy-chip:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.copy-chip:active {
  transform: translateY(0) scale(0.98);
}

.copy-chip svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.copy-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  user-select: none;
}

.social-group,
.social-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.social-button,
.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #d6d6d6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  place-items: center;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.social-button:hover,
.icon-button:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.social-button:active,
.icon-button:active {
  transform: translateY(0) scale(0.96);
}

.social-button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-button:focus-visible,
.icon-button:focus-visible,
.copy-chip:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* ------------------------------------------------------------------
   volume control (top left)
   ------------------------------------------------------------------ */

.volume-control {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(12, 12, 12, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #cccccc;
  opacity: 0.62;
  transition:
    opacity 0.25s ease,
    border-color 0.25s ease;
}

.volume-control[hidden] {
  display: none;
}

.volume-control:hover,
.volume-control:focus-within,
.volume-control.blocked {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.18);
}

.volume-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #d8d8d8;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  place-items: center;
}

.volume-toggle:hover {
  background: #171717;
  color: #ffffff;
}

.volume-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.volume-toggle .icon-muted {
  display: none;
}

.volume-toggle.muted .icon-sound {
  display: none;
}

.volume-toggle.muted .icon-muted {
  display: block;
}

.volume-control.blocked .volume-toggle {
  animation: volumePulse 2.2s ease-out infinite;
}

@keyframes volumePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
  }
  65%,
  100% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 84px;
  height: 16px;
  background: transparent;
  cursor: pointer;
}

.volume-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    to right,
    #ededed 0 var(--fill, 55%),
    #2a2a2a var(--fill, 55%) 100%
  );
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #f0f0f0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.volume-slider::-moz-range-track {
  height: 3px;
  border-radius: var(--radius-pill);
  background: #2a2a2a;
}

.volume-slider::-moz-range-progress {
  height: 3px;
  border-radius: var(--radius-pill);
  background: #ededed;
}

.volume-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #f0f0f0;
}

.volume-slider:focus-visible {
  outline: none;
}

.volume-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

/* ------------------------------------------------------------------
   owner controls
   ------------------------------------------------------------------ */

.admin-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #262626;
  transform: translateZ(12px);
}

.admin-panel[hidden] {
  display: none;
}

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

.admin-title {
  color: #666666;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-ip {
  padding: 2px 6px;
  border: 1px solid #242424;
  border-radius: var(--radius-pill);
  color: #4f4f4f;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.admin-bio {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-bio input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #262626;
  border-radius: 10px;
  outline: none;
  background: #0b0b0b;
  color: #dddddd;
  font-family: var(--sans);
  font-size: 11.5px;
  transition: border-color 0.2s ease;
}

.admin-bio input::placeholder {
  color: #444444;
}

.admin-bio input:focus {
  border-color: #555555;
}

.admin-bio button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  background: #141414;
  color: #cccccc;
  font-size: 10.5px;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.admin-bio button:hover {
  border-color: #555555;
  color: #ffffff;
}

.admin-bg {
  margin-bottom: 8px;
}

.admin-label {
  display: block;
  margin-bottom: 5px;
  color: #4a4a4a;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.admin-preset {
  height: 28px;
  border: 1px solid #262626;
  border-radius: 8px;
  background: #0a0a0a;
  color: #5e5e5e;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.admin-preset:hover {
  border-color: #454545;
  color: #bbbbbb;
}

.admin-preset[aria-pressed="true"] {
  border-color: #8a8a8a;
  background: #171717;
  color: #ffffff;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-upload {
  display: flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #303030;
  border-radius: 10px;
  background: #0a0a0a;
  color: #888888;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.admin-upload:hover {
  border-color: #555555;
  color: #dddddd;
}

.admin-upload.busy {
  border-color: #555555;
  color: #ffffff;
  pointer-events: none;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
}

.admin-actions button {
  color: #555555;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.admin-actions button:hover {
  color: #aaaaaa;
}

.admin-actions button[hidden] {
  display: none;
}

.admin-note {
  margin: 8px 0 0;
  color: #4a4a4a;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.admin-media-state {
  margin-top: 4px;
  color: #5c5c5c;
}

/* ------------------------------------------------------------------
   visitor preview
   ------------------------------------------------------------------ */

body.visitor-preview .admin-panel {
  display: none;
}

body.visitor-preview .toast {
  bottom: 72px;
}

.preview-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 90;
  display: flex;
  max-width: calc(100% - 28px);
  align-items: center;
  gap: 10px;
  padding: 8px 9px 8px 14px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  background: rgba(12, 12, 12, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.62);
  color: #b5b5b5;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  transform: translateX(-50%);
  animation: previewIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.preview-bar[hidden] {
  display: none;
}

@keyframes previewIn {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.preview-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ededed;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

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

.preview-bar button {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid #2e2e2e;
  border-radius: var(--radius-pill);
  background: #141414;
  color: #d2d2d2;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.preview-bar button:hover {
  border-color: #555555;
  color: #ffffff;
}

/* ------------------------------------------------------------------
   hints, footer, toast
   ------------------------------------------------------------------ */

.tilt-hint {
  margin: 14px 0 0;
  color: #444444;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px 22px;
  color: #3f3f3f;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.footer-sep {
  color: #2a2a2a;
}

.footer-action {
  padding: 0 0 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #4a4a4a;
  letter-spacing: inherit;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.footer-action:hover {
  border-color: rgba(255, 255, 255, 0.42);
  color: #d0d0d0;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 100;
  padding: 6px 12px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  background: #111111;
  color: #dddddd;
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------
   responsive
   ------------------------------------------------------------------ */

@media (max-width: 760px) {
  .stage {
    min-height: calc(100vh - 52px);
    padding: 66px 16px 20px;
  }

  .est-time {
    margin-bottom: 16px;
    padding: 7px 15px;
    font-size: 10.5px;
    letter-spacing: 0.035em;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ai-button {
    width: 100%;
  }

  .profile-main {
    gap: 16px;
  }

  .avatar-wrap {
    width: 90px;
    height: 90px;
  }

  .profile-name {
    font-size: clamp(1.7rem, 7.6vw, 2.15rem);
  }

  .profile-bio {
    max-width: none;
  }

  .card-inner {
    padding: 24px 20px 18px;
  }

  .card-footer {
    margin-top: 18px;
    padding-top: 16px;
  }

  .card-action-bar {
    justify-content: center;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .stage {
    padding: 60px 12px 16px;
  }

  .est-time {
    padding: 6px 12px;
    font-size: 9.5px;
    white-space: normal;
    line-height: 1.45;
  }

  .card-action-bar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .profile-scene {
    width: 100%;
  }

  .card-inner {
    padding: 22px 16px 16px;
  }

  .card-platform {
    top: 17px;
    right: 18px;
    font-size: 8px;
  }

  .profile-main {
    gap: 13px;
  }

  .avatar-wrap {
    width: 82px;
    height: 82px;
  }

  .profile-name {
    font-size: 1.75rem;
  }

  .profile-handle {
    font-size: 11.5px;
  }

  .profile-bio {
    font-size: 12.5px;
  }

  .ai-button {
    min-height: 72px;
    padding: 12px;
  }

  .ai-icon {
    width: 42px;
    height: 42px;
  }

  .ai-copy strong {
    font-size: 14px;
  }

  .copy-label {
    display: none;
  }

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

  .admin-bio {
    flex-direction: column;
  }

  .admin-bio button {
    width: 100%;
  }

  .footer {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 8.5px;
  }
}

@media (hover: none) {
  .tilt-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-scene {
    animation: none;
  }

  .cursor,
  .presence-dot,
  .activity-bars i,
  .volume-toggle {
    animation: none;
  }

  .profile-card {
    transform: none !important;
  }

  .card-shine {
    display: none;
  }

  .ai-button,
  .icon-button,
  .social-button,
  .volume-toggle,
  .admin-upload {
    transition: none;
  }
}

/* ==================================================================
    extended features
    egg badge, bio counter, settings panel, light theme, high
    contrast, reduce motion, shortcuts, share, qr, vCard, now
    playing + visualizer, visit info, trivia chip, pwa
    ================================================================== */

/* ------------------------------------------------------------------
   egg badge + flash (name row)
   ------------------------------------------------------------------ */

.egg-badge {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 10px;
  animation: eggPulse 2.8s ease-in-out infinite;
}

.egg-badge[hidden] {
  display: none;
}

@keyframes eggPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
  }
}

body.egg-flash::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #ffffff;
  pointer-events: none;
  animation: eggFlash 0.65s ease-out forwards;
}

@keyframes eggFlash {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 0;
  }
}

/* ------------------------------------------------------------------
   bio counter (owner panel)
   ------------------------------------------------------------------ */

.bio-counter {
  flex: 0 0 auto;
  align-self: center;
  color: #444444;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
}

/* ------------------------------------------------------------------
   settings: gear + panel
   ------------------------------------------------------------------ */

.site-settings {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 80;
}

.settings-gear svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-panel {
  position: fixed;
  top: 62px;
  right: 16px;
  z-index: 110;
  width: min(320px, calc(100vw - 32px));
  max-height: min(76vh, 600px);
  overflow-y: auto;
  padding: 14px 14px 16px;
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  background: rgba(12, 12, 12, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: panelIn 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.settings-panel[hidden] {
  display: none;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.settings-title {
  color: #e8e8e8;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.settings-close,
.shortcuts-close {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #2c2c2c;
  border-radius: 50%;
  color: #9a9a9a;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.settings-close:hover,
.shortcuts-close:hover {
  border-color: #5c5c5c;
  color: #ffffff;
}

.settings-close svg,
.shortcuts-close svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.settings-section {
  margin-bottom: 14px;
}

.settings-section:last-child {
  margin-bottom: 0;
}

.settings-label {
  display: block;
  margin-bottom: 7px;
  color: #565656;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 12.5px;
}

.settings-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 20px;
  border: 1px solid #333333;
  border-radius: var(--radius-pill);
  background: #101010;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.settings-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8a8a8a;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.settings-toggle[aria-checked="true"] {
  background: #e8e8e8;
  border-color: #e8e8e8;
}

.settings-toggle[aria-checked="true"]::after {
  transform: translateX(16px);
  background: #0a0a0a;
}

.settings-share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.settings-share {
  height: 36px;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  background: #0e0e0e;
  color: #b8b8b8;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.settings-share:hover {
  border-color: #5a5a5a;
  background: #151515;
  color: #ffffff;
}

.settings-share[hidden] {
  display: none;
}

.settings-info {
  margin: 3px 0 0;
  color: #8a8a8a;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.settings-info[hidden] {
  display: none;
}

.settings-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.settings-keys span,
.shortcuts-list div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.settings-keys kbd,
.shortcuts-list kbd {
  display: inline-block;
  min-width: 20px;
  padding: 2px 6px;
  border: 1px solid #333333;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #141414;
  color: #e6e6e6;
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
}

/* ------------------------------------------------------------------
   now playing bar + audio visualizer
   ------------------------------------------------------------------ */

.now-playing {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 105;
  display: flex;
  max-width: calc(100% - 28px);
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  background: rgba(12, 12, 12, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.62);
  transform: translateX(-50%);
  animation: previewIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.now-playing[hidden] {
  display: none;
}

.np-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ededed;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  animation: npPulse 1.8s ease-in-out infinite;
}

@keyframes npPulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

.np-label {
  flex: 0 0 auto;
  color: #5a5a5a;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.np-track {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eq {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.eq span {
  width: 3px;
  height: 30%;
  border-radius: 1px;
  background: #e8e8e8;
  animation: eqBounce 1.1s ease-in-out infinite;
}

.eq span:nth-child(2) {
  animation-delay: 0.22s;
}

.eq span:nth-child(3) {
  animation-delay: 0.44s;
}

.eq span:nth-child(4) {
  animation-delay: 0.66s;
}

@keyframes eqBounce {
  0%,
  100% {
    height: 24%;
  }

  50% {
    height: 100%;
  }
}

.visualizer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  height: 46px;
  opacity: 0.5;
  pointer-events: none;
}

/* ------------------------------------------------------------------
   shortcuts overlay
   ------------------------------------------------------------------ */

.shortcuts-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.shortcuts-overlay[hidden] {
  display: none;
}

.shortcuts-card {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 16px 18px;
  border: 1px solid var(--border-hover);
  border-radius: 22px;
  background: #0d0d0d;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: overlayIn 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes overlayIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.shortcuts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e8e8e8;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.shortcuts-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.shortcuts-list div {
  justify-content: space-between;
}

.shortcuts-note {
  margin: 14px 0 0;
  color: #565656;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

/* ------------------------------------------------------------------
   qr popover
   ------------------------------------------------------------------ */

.qr-pop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.qr-pop[hidden] {
  display: none;
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: overlayIn 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.qr-title {
  color: #161616;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.qr-image {
  width: 180px;
  height: 180px;
}

.qr-url {
  color: #161616;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.qr-close {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid #b5b5b5;
  color: #4a4a4a;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.qr-close:hover {
  border-color: #111111;
  color: #111111;
}

/* ------------------------------------------------------------------
   light theme (html.light-theme)
   monochrome, flips the page to paper-gray
   ------------------------------------------------------------------ */

html.light-theme {
  --bg: #ececec;
  --panel: #f6f6f6;
  --panel-2: #e4e4e4;
  --border: #c9c9c9;
  --border-soft: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.4);
  --text: #131313;
  --muted: #4a4a4a;
  --dim: #6f6f6f;
  --faint: #989898;
}

html.light-theme #starfield {
  filter: invert(1);
  opacity: 0.16;
}

html.light-theme ::selection {
  background: #131313;
  color: #ffffff;
}

html.light-theme :focus-visible {
  outline-color: #131313;
}

html.light-theme .card-bg {
  border-color: rgba(0, 0, 0, 0.14);
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, 0.9), transparent 58%),
    linear-gradient(150deg, rgba(250, 250, 250, 0.94), rgba(238, 238, 238, 0.96));
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.24),
    0 0 54px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html.light-theme .card-bg::after {
  background:
    radial-gradient(560px 240px at 10% 0%, rgba(255, 255, 255, 0.8), transparent 64%),
    radial-gradient(520px 300px at 100% 102%, rgba(0, 0, 0, 0.035), transparent 66%);
}

html.light-theme .card-shine {
  background: radial-gradient(
    540px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 0, 0, 0.07),
    transparent 46%
  );
  mix-blend-mode: multiply;
}

html.light-theme .card-platform {
  color: #7d7d7d;
}

html.light-theme .profile-handle {
  color: #5c5c5c;
}

html.light-theme .cursor {
  background: #131313;
}

html.light-theme .profile-joined {
  color: #707070;
}

html.light-theme .profile-bio {
  color: #3d3d3d;
}

html.light-theme .badge {
  border-color: #c4c4c4;
  background: #efefef;
  color: #555555;
}

html.light-theme .badge-icon {
  color: #222222;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.25));
}

html.light-theme .presence-dot {
  border-color: #f2f2f2;
}

html.light-theme .presence-dot.status-unknown {
  border-color: #b3b3b3;
  background: #e2e2e2;
}

html.light-theme .egg-badge {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.05);
  color: #131313;
}

html.light-theme .est-time {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #222222;
}

html.light-theme .est-time:hover {
  border-color: rgba(0, 0, 0, 0.32);
  background: rgba(255, 255, 255, 0.92);
}

html.light-theme .ai-button {
  border-color: rgba(0, 0, 0, 0.12);
  background: linear-gradient(145deg, #ffffff, #ececec);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
}

html.light-theme .ai-button:hover {
  border-color: rgba(0, 0, 0, 0.34);
}

html.light-theme .copy-chip {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.03);
  color: #333333;
}

html.light-theme .copy-chip:hover {
  border-color: rgba(0, 0, 0, 0.34);
  background: rgba(0, 0, 0, 0.07);
  color: #000000;
}

html.light-theme .social-button,
html.light-theme .icon-button {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.65);
  color: #3a3a3a;
}

html.light-theme .social-button:hover,
html.light-theme .icon-button:hover {
  border-color: rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.08);
  color: #000000;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.18),
    0 0 16px rgba(0, 0, 0, 0.08);
}

html.light-theme .volume-control {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.85);
}

html.light-theme .volume-toggle {
  color: #3a3a3a;
}

html.light-theme .tilt-hint {
  color: #9a9a9a;
}

html.light-theme .footer {
  color: #8a8a8a;
}

html.light-theme .footer-sep {
  color: #b3b3b3;
}

html.light-theme .footer-action {
  border-color: rgba(0, 0, 0, 0.25);
  color: #6f6f6f;
}

html.light-theme .footer-action:hover {
  border-color: rgba(0, 0, 0, 0.55);
  color: #1a1a1a;
}

html.light-theme .preview-bar {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(250, 250, 250, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  color: #5a5a5a;
}

html.light-theme .preview-dot {
  background: #1a1a1a;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}

html.light-theme .preview-bar button {
  border-color: rgba(0, 0, 0, 0.25);
  background: #f0f0f0;
  color: #333333;
}

html.light-theme .preview-bar button:hover {
  border-color: rgba(0, 0, 0, 0.5);
  color: #000000;
}

html.light-theme .toast {
  border-color: rgba(0, 0, 0, 0.3);
  background: #ffffff;
  color: #1a1a1a;
}

html.light-theme .settings-panel {
  border-color: rgba(0, 0, 0, 0.28);
  background: rgba(250, 250, 250, 0.97);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

html.light-theme .settings-head {
  border-color: rgba(0, 0, 0, 0.16);
}

html.light-theme .settings-title {
  color: #131313;
}

html.light-theme .settings-label {
  color: #8a8a8a;
}

html.light-theme .settings-close,
html.light-theme .shortcuts-close {
  border-color: rgba(0, 0, 0, 0.3);
  color: #555555;
}

html.light-theme .settings-close:hover,
html.light-theme .shortcuts-close:hover {
  border-color: rgba(0, 0, 0, 0.6);
  color: #000000;
}

html.light-theme .settings-toggle {
  border-color: rgba(0, 0, 0, 0.35);
  background: #e0e0e0;
}

html.light-theme .settings-toggle::after {
  background: #9a9a9a;
}

html.light-theme .settings-toggle[aria-checked="true"] {
  background: #131313;
  border-color: #131313;
}

html.light-theme .settings-toggle[aria-checked="true"]::after {
  background: #ffffff;
}

html.light-theme .settings-share {
  border-color: rgba(0, 0, 0, 0.2);
  background: #f2f2f2;
  color: #444444;
}

html.light-theme .settings-share:hover {
  border-color: rgba(0, 0, 0, 0.5);
  background: #e9e9e9;
  color: #000000;
}

html.light-theme .settings-info {
  color: #5f5f5f;
}

html.light-theme .settings-keys kbd,
html.light-theme .shortcuts-list kbd {
  border-color: #b8b8b8;
  background: #ffffff;
  color: #222222;
}

html.light-theme .now-playing {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(250, 250, 250, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

html.light-theme .np-label {
  color: #8a8a8a;
}

html.light-theme .np-dot {
  background: #1a1a1a;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

html.light-theme .eq span {
  background: #222222;
}

html.light-theme .shortcuts-overlay {
  background: rgba(0, 0, 0, 0.45);
}

html.light-theme .shortcuts-card {
  border-color: rgba(0, 0, 0, 0.28);
  background: #f8f8f8;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

html.light-theme .shortcuts-head {
  color: #131313;
}

html.light-theme .shortcuts-note {
  color: #8a8a8a;
}

/* ------------------------------------------------------------------
   high contrast (html.high-contrast)
   brighter borders and text on the dark theme
   ------------------------------------------------------------------ */

html.high-contrast {
  --border: #4f4f4f;
  --border-soft: rgba(255, 255, 255, 0.18);
  --border-hover: #ffffff;
  --muted: #d6d6d6;
  --dim: #bcbcbc;
  --faint: #a0a0a0;
}

html.high-contrast .card-platform {
  color: #9a9a9a;
}

html.high-contrast .profile-handle {
  color: #b3b3b3;
}

html.high-contrast .profile-joined {
  color: #a3a3a3;
}

html.high-contrast .profile-bio {
  color: #d4d4d4;
}

html.high-contrast .badge {
  border-color: #555555;
  color: #c9c9c9;
}

html.high-contrast .egg-badge {
  border-color: rgba(255, 255, 255, 0.5);
}

html.high-contrast .footer {
  color: #8a8a8a;
}

html.high-contrast .footer-action {
  border-color: rgba(255, 255, 255, 0.35);
  color: #a5a5a5;
}

html.high-contrast .settings-label {
  color: #9a9a9a;
}

html.high-contrast .settings-info {
  color: #c4c4c4;
}

/* high contrast on the light theme */

html.light-theme.high-contrast {
  --border: #7a7a7a;
  --border-soft: rgba(0, 0, 0, 0.24);
  --border-hover: #000000;
  --muted: #2e2e2e;
  --dim: #3c3c3c;
  --faint: #616161;
}

html.light-theme.high-contrast .card-platform {
  color: #585858;
}

html.light-theme.high-contrast .profile-handle {
  color: #3f3f3f;
}

html.light-theme.high-contrast .profile-joined {
  color: #4a4a4a;
}

html.light-theme.high-contrast .profile-bio {
  color: #1f1f1f;
}

html.light-theme.high-contrast .badge {
  border-color: #8a8a8a;
  color: #2e2e2e;
}

html.light-theme.high-contrast .footer {
  color: #5c5c5c;
}

html.light-theme.high-contrast .footer-action {
  border-color: rgba(0, 0, 0, 0.5);
  color: #444444;
}

html.light-theme.high-contrast .settings-label {
  color: #5f5f5f;
}

html.light-theme.high-contrast .settings-info {
  color: #333333;
}

/* ------------------------------------------------------------------
   reduce motion (body.reduce-motion)
   mirrors prefers-reduced-motion, driven by the settings toggle
   ------------------------------------------------------------------ */

body.reduce-motion .profile-scene,
body.reduce-motion .cursor,
body.reduce-motion .presence-dot,
body.reduce-motion .activity-bars i,
body.reduce-motion .volume-toggle,
body.reduce-motion .est-pulse,
body.reduce-motion .np-dot,
body.reduce-motion .egg-badge,
body.reduce-motion .eq span {
  animation: none;
}

body.reduce-motion .profile-card {
  transform: none !important;
}

body.reduce-motion .card-shine {
  display: none;
}

body.reduce-motion .ai-button,
body.reduce-motion .icon-button,
body.reduce-motion .social-button,
body.reduce-motion .volume-toggle,
body.reduce-motion .admin-upload,
body.reduce-motion .bg-video-motion,
body.reduce-motion .settings-panel,
body.reduce-motion .settings-toggle,
body.reduce-motion .settings-toggle::after,
body.reduce-motion .settings-share,
body.reduce-motion .qr-close,
body.reduce-motion .toast,
body.reduce-motion .now-playing {
  transition: none;
}

/* ------------------------------------------------------------------
   responsive — extended
   ------------------------------------------------------------------ */

@media (max-width: 760px) {
  .settings-panel {
    top: 62px;
    left: 16px;
    right: 16px;
    width: auto;
  }

  .settings-share {
    height: 40px;
  }

  .now-playing {
    bottom: 16px;
    gap: 8px;
    padding: 7px 12px;
  }

  .np-label {
    display: none;
  }

  .visualizer {
    height: 34px;
  }

  .qr-image {
    width: 150px;
    height: 150px;
  }

  .qr-card {
    gap: 8px;
    padding: 16px 18px 14px;
  }
}

@media (max-width: 420px) {
  .settings-share-grid {
    grid-template-columns: 1fr;
  }
}
