/* RECTCAR overlay */
#rectcar-ui {
  position: static;
  pointer-events: none;
}

/* Header brand replaces Lusion Labs */
.header-logo .rectcar-brand {
  display: flex;
  align-items: center;
  pointer-events: none;
  user-select: none;
}

.header-logo .rectcar-brand span {
  font-family: daysoneregular, 'Days One', Impact, sans-serif;
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1;
  color: #fff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.header-logo a[href*="labs.lusion"] {
  display: none !important;
}

header .header-more {
  z-index: 12;
  pointer-events: auto;
}

header .header-more--about h2 {
  pointer-events: auto;
}

/* X icon — bottom right, violet; above color picker */
#rc-twitter {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(72px, calc(env(safe-area-inset-bottom) + 56px));
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(145deg, #8b3dff 0%, #c084fc 55%, #a855f7 100%);
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
  box-shadow:
    0 0 0 1px rgba(192, 132, 252, 0.35),
    0 4px 20px rgba(139, 61, 255, 0.45),
    0 0 32px rgba(168, 85, 247, 0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

#rc-twitter svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

#rc-twitter:hover,
#rc-twitter:focus-visible {
  transform: translateY(-2px) scale(1.06);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(216, 180, 254, 0.55),
    0 8px 28px rgba(139, 61, 255, 0.55),
    0 0 40px rgba(192, 132, 252, 0.35);
}

#rc-twitter:active {
  transform: translateY(0) scale(0.96);
}

@media (min-width: 768px) {
  #rc-twitter {
    right: max(28px, env(safe-area-inset-right));
    bottom: max(80px, calc(env(safe-area-inset-bottom) + 64px));
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  #rc-twitter svg {
    width: 20px;
    height: 20px;
  }
}
