/* NexusLangPicker wheel picker styles (JS-langpicker 2026-10-10). Every class is nxp-prefixed
   and lives only here; colours come from the landing.css variables (light + dark) with plain
   fallbacks for pages that do not define them. No images, no external URLs. */

.nxp {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-ink, #0b1220);
  user-select: none;
  -webkit-user-select: none;
}
/* The text is never at opacity 0 (Chrome reports no Largest Contentful Paint for content that starts invisible):
   the backdrop fades in and the column slides up instead. */
.nxp::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--lp-bg, #f5f7fb);
  background-image: radial-gradient(120% 90% at 50% 50%, var(--lp-glow, rgba(37, 99, 235, .14)) 0%, rgba(0, 0, 0, 0) 62%);
  opacity: 0;
  transition: opacity .25s ease;
}
.nxp.nxp-on::before { opacity: 1; }
.nxp .nxp-col { transform: translateY(14px); transition: transform .3s ease-out; }
.nxp.nxp-on .nxp-col { transform: none; }

.nxp-col {
  width: min(92vw, 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.nxp h2 { margin: 0 0 6px; padding: 0; border: 0; text-transform: none; color: var(--lp-ink, #0b1220); font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.nxp-hint { margin: 0 0 18px; font-size: 13px; color: var(--lp-ink-2, #3c4a5e); }

.nxp-wheelbox { position: relative; width: 100%; height: 264px; }

.nxp-wheel {
  position: relative; z-index: 1; color: var(--lp-ink, #0b1220);
  box-sizing: border-box;
  height: 264px;
  padding: 106px 0;              /* (264 - 52) / 2 so the first and last item can centre */
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  outline: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%);
}
.nxp-wheel::-webkit-scrollbar { display: none; }
.nxp-wheel:focus-visible { outline: 3px solid var(--lp-a, #2563eb); outline-offset: 4px; border-radius: 12px; }

.nxp-item {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  scroll-snap-align: center;
  will-change: transform, opacity;
}
.nxp-flag { font-size: 26px; line-height: 1; width: 1.4em; text-align: center; flex: none; contain: layout style; }
.nxp-name { font-size: 20px; font-weight: 600; white-space: nowrap; }

.nxp-band {
  z-index: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 52px;
  transform: translateY(-50%);
  border-top: 1px solid var(--lp-line, #dbe2ec);
  border-bottom: 1px solid var(--lp-line, #dbe2ec);
  border-radius: 12px;
  background: var(--lp-glow, rgba(37, 99, 235, .14));
  pointer-events: none;
}

.nxp-continue {
  margin-top: 22px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--lp-a, #2563eb);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.nxp-continue:focus-visible { outline: 3px solid var(--lp-a, #2563eb); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .nxp,
  .nxp::before, .nxp .nxp-col,
  .nxp-wheel { transition: none !important; scroll-behavior: auto !important; }
}

@media (prefers-color-scheme: dark) { .nxp-continue { color: #06101f; } }
