/* Language icons remain links, with a full accessible language name. */
.languages { gap: 8px; }
.languages a {
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
}
.languages a img { width: 28px; height: 20px; border-radius: 2px; }
.languages a[aria-current="page"] {
  border-color: var(--accent);
  background-color: var(--raised);
  box-shadow: inset 0 -3px var(--accent);
  text-decoration: none;
}
.languages a:hover { background-color: var(--raised); }

/* Clip the app's ambient orb to the viewport. Only this small gradient moves. */
.vm-ambient-stage {
  position: fixed;
  inset: 0;
  z-index: 9;
  overflow: hidden;
  pointer-events: none;
}
.vm-ambient-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(260px, 42vw, 500px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, #ff939333, #ee536523 33%, #e31c2910 62%, transparent);
  transform: translate3d(var(--vm-pointer-x, 0px), var(--vm-pointer-y, 0px), 0) translate(-50%, -50%);
  opacity: 0;
  transition: opacity 220ms ease;
  will-change: transform, opacity;
}
.vm-ambient-stage[data-vm-lit]::before { opacity: 1; }

/* Same 210px cursor sheen, fade and specular edge as Vumiro.UI/src/styles/polish.css. */
[data-vm-spotlight] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 200ms ease, background-color 180ms ease;
}
[data-vm-spotlight]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    210px circle at var(--vm-mx, 50%) var(--vm-my, 50%),
    color-mix(in srgb, var(--community-accent, var(--accent, #e11d2e)) 15%, rgba(255, 255, 255, 0.1)),
    transparent 72%
  );
  transition: opacity 220ms ease;
  z-index: -1;
}
[data-vm-spotlight][data-vm-hover="true"]::before { opacity: 1; }
[data-vm-spotlight][data-vm-hover="true"] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.languages a[aria-current="page"][data-vm-hover="true"] {
  box-shadow: inset 0 -3px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.button.primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 22px -6px color-mix(in srgb, var(--accent) 58%, transparent);
}
/* Keyboard focus uses the landing's existing visible outline, independent of JS. */
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  [data-vm-spotlight], [data-vm-spotlight]::before { transition: none; }
  .vm-ambient-stage, [data-vm-spotlight]::before { display: none; }
}
@media (forced-colors: active) {
  .vm-ambient-stage, [data-vm-spotlight]::before { display: none; }
  .languages a[aria-current="page"] { border: 3px solid Highlight; }
  .languages a:focus-visible { outline-color: Highlight; }
}
