/* Wubster — waitlist. Значения 1:1 из design/MainV2 (desktop) и design/MobileV2 (< 640px). */

:root { --accent: #6A45F5; --px: 0px; --py: 0px; }

html, body { height: 100%; }
body {
  margin: 0; overflow: hidden;
  background: #08070C; color: #EDEAF5;
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: #B7A6FF; } a:hover { color: #D9CFFF; }
button, input { font: inherit; }

.wub-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wub-mob { display: none; }

/* ---------- keyframes ---------- */
@keyframes wub-blink { 0%, 92%, 100% { transform: scaleY(0) } 95% { transform: scaleY(1) } }
@keyframes wub-flow1 { from { transform: translateX(0) } to { transform: translateX(-240px) } }
@keyframes wub-flow2 { from { transform: translateX(0) } to { transform: translateX(-360px) } }
@keyframes wub-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
@keyframes wub-breathe {
  0%, 100% { box-shadow: 0 0 0 1px #2A2340, 0 0 60px -10px rgba(124,92,255,.35), inset 0 2px 0 rgba(255,255,255,.05), inset 0 0 40px rgba(0,0,0,.9) }
  50%      { box-shadow: 0 0 0 1px #3A2F66, 0 0 90px -6px rgba(124,92,255,.55), inset 0 2px 0 rgba(255,255,255,.05), inset 0 0 40px rgba(0,0,0,.9) }
}
@keyframes wub-rot { to { transform: rotate(360deg) } }
@keyframes wub-wave { 0% { transform: translate(-50%,-50%) scale(.55); opacity: 0 } 12% { opacity: .7 } 100% { transform: translate(-50%,-50%) scale(3.2); opacity: 0 } }
@keyframes wub-pass-in {
  0%   { opacity: 0; transform: translateY(-60px) scale(.86) rotate(0deg) }
  60%  { opacity: 1; transform: translateY(6px) scale(1.01) rotate(-2.2deg) }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(-1.6deg) }
}
@keyframes wub-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes wub-ripple { 0% { transform: translate(-50%,-50%) scale(.55); opacity: .55 } 100% { transform: translate(-50%,-50%) scale(1.9); opacity: 0 } }
@keyframes wub-sheen { 0% { transform: translateX(-120%) rotate(18deg) } 55%, 100% { transform: translateX(260%) rotate(18deg) } }
@keyframes wub-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .45 } 40% { transform: translateY(-5px); opacity: 1 } }
@keyframes wub-eq-a { 0% { transform: scaleY(1) } 18% { transform: scaleY(1.7) } 36% { transform: scaleY(.45) } 54% { transform: scaleY(1.45) } 72% { transform: scaleY(.7) } 100% { transform: scaleY(1) } }
@keyframes wub-eq-b { 0% { transform: scaleY(1) } 18% { transform: scaleY(1.7) } 36% { transform: scaleY(.45) } 54% { transform: scaleY(1.45) } 72% { transform: scaleY(.7) } 100% { transform: scaleY(1) } }

/* ---------- page + background ---------- */
.wub-page {
  position: relative; box-sizing: border-box;
  height: 100vh; height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column;
  background: radial-gradient(ellipse 75% 70% at 50% 30%, #1A1233 0%, #0E0B18 55%, #08070C 100%);
}
.wub-bg-glow, .wub-bg-grain { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.wub-bg-glow {
  background:
    radial-gradient(ellipse 90% 35% at 50% 108%, rgba(63,169,245,.16) 0%, transparent 70%),
    radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(0,0,0,.55) 100%);
}
.wub-bg-grain { opacity: .5; mix-blend-mode: overlay; }

/* световые пятна */
.aurora-1, .aurora-2 {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(30px); will-change: transform;
}
.aurora-1 {
  left: -333px; top: -333px; width: 1000px; height: 1000px;
  background: radial-gradient(circle, rgba(106,69,245,.22) 0%, transparent 62%);
  animation: drift1 38s ease-in-out infinite alternate;
}
.aurora-2 {
  right: -300px; bottom: -300px; width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(63,169,245,.16) 0%, transparent 62%);
  animation: drift2 46s ease-in-out infinite alternate;
}
@keyframes drift1 { 0% { transform: translate(0,0) scale(1) } 50% { transform: translate(120px,60px) scale(1.15) } 100% { transform: translate(-40px,120px) scale(.95) } }
@keyframes drift2 { 0% { transform: translate(0,0) scale(1) } 50% { transform: translate(-140px,-50px) scale(1.1) } 100% { transform: translate(60px,-110px) scale(1) } }

/* луч прожектора: два некратных качания (14s и 7.9s) — движение не читается как маятник */
.sway {
  position: absolute; left: 50%; top: -10px; width: 900px; height: 395px; margin-left: -450px;
  z-index: 0; pointer-events: none; transform-origin: 50% 0;
  animation: search 14s cubic-bezier(.45,.05,.55,.95) infinite;
}
.sway2 { position: absolute; inset: 0; transform-origin: 50% 0; animation: search2 7.9s cubic-bezier(.37,0,.63,1) infinite; }
.beam {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  mix-blend-mode: screen; will-change: transform;
  clip-path: polygon(42.8% 0, 57.2% 0, 100% 100%, 0 100%); filter: blur(14px);
  background: linear-gradient(180deg, rgba(206,194,255,.28) 0%, rgba(150,120,255,.13) 55%, rgba(124,92,255,0) 100%);
  animation: beamFlicker 7s ease-in-out infinite;
}
.pool {
  position: absolute; left: 171px; top: 240px; width: 558px; height: 190px;
  border-radius: 50%; filter: blur(8px); mix-blend-mode: screen; will-change: transform;
  background: radial-gradient(ellipse at center, rgba(190,175,255,.16) 0%, rgba(124,92,255,.07) 45%, transparent 72%);
}
@keyframes search { 0% { transform: rotate(0deg) } 7% { transform: rotate(-7deg) } 17% { transform: rotate(-9.5deg) } 26% { transform: rotate(-3deg) } 35% { transform: rotate(-5deg) } 47% { transform: rotate(6deg) } 58% { transform: rotate(10deg) } 66% { transform: rotate(7.5deg) } 77% { transform: rotate(-1deg) } 88% { transform: rotate(-6deg) } 100% { transform: rotate(0deg) } }
@keyframes search2 { 0% { transform: rotate(0deg) scaleX(1) } 25% { transform: rotate(2.2deg) scaleX(1.08) } 50% { transform: rotate(-.8deg) scaleX(.95) } 75% { transform: rotate(-2deg) scaleX(1.05) } 100% { transform: rotate(0deg) scaleX(1) } }
@keyframes beamFlicker { 0%, 100% { opacity: .85 } 45% { opacity: 1 } 50% { opacity: .78 } 55% { opacity: .95 } }

/* пылинки: качаются вместе с лучом (те же search/search2, точка вращения — вершина луча) */
.dust-layer, .dust-layer2 { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; transform-origin: 50% -10px; }
.dust-layer { z-index: 1; animation: search 14s cubic-bezier(.45,.05,.55,.95) infinite; }
.dust-layer2 { animation: search2 7.9s cubic-bezier(.37,0,.63,1) infinite; }
.dust {
  position: absolute; border-radius: 50%; background: #E4DDFF; box-shadow: 0 0 6px rgba(200,185,255,.9);
  opacity: 0; animation: dust var(--t) linear var(--d) infinite;
}
@keyframes dust { 0% { transform: translate(0,0); opacity: 0 } 20% { opacity: var(--o) } 80% { opacity: var(--o) } 100% { transform: translate(var(--dx),var(--dy)); opacity: 0 } }

/* рамка по периметру — только на мобильном */
.wub-frame {
  display: none;
  position: absolute; inset: 20px; z-index: 3; pointer-events: none;
  --r: 22px; --c: 16px;
  border-radius: var(--r); box-shadow: inset 0 0 0 1px rgba(169,150,255,.09);
}
.wub-frame-corner { position: absolute; width: var(--c); height: var(--c); border: 0 solid rgba(190,175,255,.45); }
.wub-frame-tl { left: -1px;  top: -1px;    border-top-width: 1px;    border-left-width: 1px;  border-top-left-radius: var(--r); }
.wub-frame-tr { right: -1px; top: -1px;    border-top-width: 1px;    border-right-width: 1px; border-top-right-radius: var(--r); }
.wub-frame-bl { left: -1px;  bottom: -1px; border-bottom-width: 1px; border-left-width: 1px;  border-bottom-left-radius: var(--r); }
.wub-frame-br { right: -1px; bottom: -1px; border-bottom-width: 1px; border-right-width: 1px; border-bottom-right-radius: var(--r); }
.wub-frame-edge { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r); }
.sweep {
  position: absolute; left: 0; top: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,185,255,.55), transparent);
  transform: translateX(-100%);
  animation: sweep 9s ease-in-out infinite;
}
@keyframes sweep { 0% { transform: translateX(-100%) } 100% { transform: translateX(100%) } }

/* ---------- header ---------- */
.wub-header {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 36px 56px 0;
  padding-top: max(36px, env(safe-area-inset-top));
}
.wub-brand { display: flex; align-items: center; gap: 14px; }
.wub-mark {
  width: 46px; height: 26px; border-radius: 13px; background: #050408; box-shadow: 0 0 0 1px #3A2F66;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.wub-mark-squint { width: 9px; height: 5px; border-radius: 0 0 9px 9px; background: #F4F1FF; transform: rotate(-12deg); margin-top: 3px; }
.wub-mark-eye { width: 11px; height: 11px; border-radius: 50%; background: #F4F1FF; display: flex; align-items: center; justify-content: center; }
.wub-mark-eye > div { width: 5px; height: 5px; border-radius: 50%; background: #0B0A10; }
.wub-wordmark { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: #EDEAF5; }
.wub-status {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #A59FBD;
  padding: 9px 16px; border-radius: 999px; box-shadow: 0 0 0 1px #2A2340;
}
.wub-dot { width: 7px; height: 7px; border-radius: 50%; background: #3FE0A0; animation: wub-pulse 1.6s ease-in-out infinite; }

/* ---------- main ---------- */
.wub-main {
  position: relative; z-index: 2; flex-grow: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 44px; padding: 0 24px 90px;
}

/* глазок */
.wub-scope { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wub-rings {
  position: absolute; left: 50%; top: 50%; width: 1500px; height: 1500px; transform: translate(-50%, -50%);
  pointer-events: none; z-index: -1;
  background: radial-gradient(circle at center, rgba(110,76,255,.30) 0%, rgba(80,50,200,.12) 18%, transparent 40%);
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 70%);
          mask-image: radial-gradient(circle at center, #000 30%, transparent 70%);
}
.wub-rings svg.wub-desk { display: block; }
.wub-rings svg.wub-mob { display: none; }
.wub-spin { animation: wub-rot 60s linear infinite; }
.wub-wv {
  position: absolute; left: 50%; top: 50%; width: 440px; height: 440px; border-radius: 50%;
  transform: translate(-50%,-50%) scale(.55); opacity: 0;
  animation: wub-wave 7.2s cubic-bezier(.25,.6,.4,1) infinite;
}
.wub-wv1 { box-shadow: 0 0 0 1px rgba(169,150,255,.55), inset 0 0 40px rgba(124,92,255,.08); }
.wub-wv2 { box-shadow: 0 0 0 1px rgba(169,150,255,.5),  inset 0 0 40px rgba(124,92,255,.08); animation-delay: 2.4s; }
.wub-wv3 { box-shadow: 0 0 0 1px rgba(63,169,245,.45),  inset 0 0 40px rgba(124,92,255,.08); animation-delay: 4.8s; }

.wub-slot {
  position: relative; width: 420px; height: 140px; border-radius: 70px;
  background: linear-gradient(180deg, #07060C 0%, #120E22 100%);
  display: flex; align-items: center; justify-content: center; gap: 34px;
  animation: wub-breathe 4s ease-in-out infinite;
}
.wub-eye {
  position: relative; overflow: hidden; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 38% 32%, #FFFFFF 0%, #EEE9FB 45%, #B9ADDB 100%);
}
.wub-eye-l { width: 80px; height: 80px; box-shadow: 0 0 0 5px #1B1433, 0 0 0 7px var(--accent), 0 0 28px 2px rgba(124,92,255,.45), inset 0 -6px 14px rgba(60,40,120,.35); }
.wub-eye-r { width: 98px; height: 98px; box-shadow: 0 0 0 5px #1B1433, 0 0 0 7px var(--accent), 0 0 28px 2px rgba(124,92,255,.45), inset 0 -8px 18px rgba(60,40,120,.35); }
.wub-pupil {
  position: relative; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 38%, #B8A6FF 0%, var(--accent) 48%, #1C1446 100%);
  box-shadow: 0 0 0 2px #120D26;
  transform: translate(var(--px), var(--py));
  transition: transform .18s ease-out;
}
.is-drift .wub-pupil { transition-duration: 1.6s; transition-timing-function: ease-in-out; }
.wub-pupil-core { border-radius: 50%; background: #06050A; }
.wub-glint { position: absolute; border-radius: 50%; background: #FFFFFF; opacity: .92; }
.wub-eye-l .wub-pupil { width: 42px; height: 42px; }
.wub-eye-l .wub-pupil-core { width: 18px; height: 18px; }
.wub-eye-l .wub-glint { left: 8px; top: 7px; width: 9px; height: 9px; }
.wub-eye-r .wub-pupil { width: 51px; height: 51px; }
.wub-eye-r .wub-pupil-core { width: 22px; height: 22px; }
.wub-eye-r .wub-glint { left: 10px; top: 8px; width: 11px; height: 11px; }
.wub-brow {
  position: absolute; left: -12px; top: -16px; width: 104px; height: 45px;
  background: linear-gradient(180deg, #07060C, #120E22);
  border-bottom: 6px solid var(--accent); box-shadow: 0 3px 8px rgba(0,0,0,.55);
  transform: rotate(-15deg);
}
.wub-lid {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; box-sizing: border-box;
  background: linear-gradient(180deg, #07060C, #120E22); border-bottom: 6px solid var(--accent);
  transform: scaleY(0); transform-origin: top;
  animation: wub-blink 5.5s infinite;
}
.wub-lid-late { animation-delay: .12s; }

/* текст */
.wub-copy { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 4px; } /* 22 + 4 = 26px до H1 */
.eyebrow__text {
  font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 15px; letter-spacing: 0.34em;
  text-transform: uppercase; color: #D9D2F5; white-space: nowrap;
}
.eyebrow__rail { width: 120px; height: 1px; flex-shrink: 0; }
.eyebrow__rail--left  { background: linear-gradient(90deg, transparent, #8B6CFF); }
.eyebrow__rail--right { background: linear-gradient(90deg, #8B6CFF, transparent); }
.wub-copy h1 {
  margin: 0; font-family: Unbounded, sans-serif; font-weight: 700;
  font-size: clamp(34px, min(6vw, 7.1vh), 64px); line-height: 1.04; letter-spacing: -0.035em; color: #EDEAF5;
}
.wub-copy h1 span { color: #6F6989; }
.wub-copy p { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.55; color: #A59FBD; }

/* форма */
.wub-cta { display: flex; flex-direction: column; align-items: center; width: 100%; }
.wub-form-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.wub-field {
  position: relative; width: 100%; max-width: 520px; height: 64px; box-sizing: border-box; margin: 0;
  padding: 6px 6px 6px 28px; border-radius: 999px;
  background: rgba(20,16,34,.72); box-shadow: 0 0 0 1px #2E2650, 0 10px 40px -12px rgba(0,0,0,.8);
  display: flex; align-items: center; gap: 12px;
}
.wub-field:focus-within { box-shadow: 0 0 0 2px #7C5CFF; }
.wub-input {
  flex-grow: 1; min-width: 0; height: 52px; padding: 0;
  background: transparent; border: 0; color: #EDEAF5;
  font-family: Manrope, sans-serif; font-size: 17px;
}
.wub-input::placeholder { color: #6F6989; }
.wub-input:focus { outline: none; }
.wub-hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.wub-btn {
  flex-shrink: 0; height: 52px; min-width: 196px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--accent); color: #FFFFFF; cursor: pointer;
  font-family: Unbounded, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.wub-btn:hover { filter: brightness(1.12); }
.wub-btn:focus-visible { outline: 2px solid #EDEAF5; outline-offset: 3px; }
.wub-btn[aria-busy="true"] { cursor: progress; }
.wub-btn-label { display: flex; align-items: center; gap: 10px; }
.wub-btn-dots { display: none; align-items: center; gap: 6px; }
.wub-btn-dots > span { width: 7px; height: 7px; border-radius: 50%; background: #FFFFFF; animation: wub-bounce 1s infinite; }
.wub-btn-dots > .wub-b2 { animation-delay: .15s; }
.wub-btn-dots > .wub-b3 { animation-delay: .3s; }
.wub-btn[aria-busy="true"] .wub-btn-label { display: none; }
.wub-btn[aria-busy="true"] .wub-btn-dots { display: flex; }
.wub-hint { font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 18px; color: #6F6989; text-align: center; }
.wub-hint.is-error { color: #FF8FB1; }

.wub-done {
  display: none; width: 100%; max-width: 520px; height: 64px; box-sizing: border-box; border-radius: 999px;
  background: #14121C; box-shadow: 0 0 0 1px #3A2F66;
  align-items: center; justify-content: center; gap: 12px; padding: 0 16px;
  font-size: 17px; color: #EDEAF5; outline: none;
}
.wub-done svg { flex-shrink: 0; }
.is-done .wub-form-wrap { display: none; }
.is-done .wub-done { display: flex; }

/* нижняя волна + футер */
.wub-flow { position: absolute; left: 0; bottom: 64px; width: 100%; z-index: 1; overflow: hidden; }
.wub-w1 { animation: wub-flow1 3.2s linear infinite; }
.wub-w2 { animation: wub-flow2 6s linear infinite; }
.wub-footer {
  position: absolute; left: 56px; right: 56px; bottom: 40px; z-index: 2;
  display: flex; justify-content: space-between; gap: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #8C86A3;
}

/* ---------- попап-пропуск ---------- */
.wub-overlay {
  position: fixed; inset: 0; z-index: 20; overflow: hidden auto;
  display: flex; padding: 16px; box-sizing: border-box;
  background: rgba(6,5,11,.74);
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
  animation: wub-fade .35s ease-out both;
}
.wub-overlay[hidden] { display: none; }
.wub-rip {
  position: fixed; left: 50%; top: 50%; width: 560px; height: 560px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(169,150,255,.5); pointer-events: none;
  transform: translate(-50%,-50%) scale(.55); opacity: 0;
  animation: wub-ripple 3.6s ease-out infinite;
}
.wub-rip2 { animation-delay: 1.2s; }
.wub-rip3 { animation-delay: 2.4s; box-shadow: 0 0 0 1px rgba(63,169,245,.45); }

.wub-pass {
  position: relative; margin: auto; width: 440px; max-width: 100%; flex-shrink: 0;
  border-radius: 26px; overflow: hidden;
  background: linear-gradient(165deg, #1B1436 0%, #110D22 45%, #09080F 100%);
  box-shadow: 0 0 0 1px rgba(169,150,255,.28), 0 40px 120px -20px rgba(0,0,0,.9), 0 0 90px -20px rgba(106,69,245,.6);
  display: flex; flex-direction: column;
  animation: wub-pass-in .75s cubic-bezier(.2,.9,.25,1.15) .1s both;
}
.wub-shine {
  position: absolute; left: 0; top: -40%; width: 90px; height: 180%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  transform: translateX(-120%) rotate(18deg);
  animation: wub-sheen 5s ease-in-out 1s infinite;
}
.wub-x {
  position: absolute; right: 14px; top: 14px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: #A59FBD; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.wub-x:hover { background: rgba(255,255,255,.08); }
.wub-x:focus-visible, .wub-ok:focus-visible, .wub-code:focus-visible { outline: 2px solid #EDEAF5; outline-offset: 3px; }

.wub-pass-top { padding: 36px 36px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.wub-mini {
  width: 162px; height: 64px; border-radius: 32px; background: #07060C;
  box-shadow: 0 0 0 1px #3A2F66, 0 0 40px -6px rgba(124,92,255,.6), inset 0 0 20px rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center; gap: 19px;
}
.wub-mini svg { width: 32px; height: 19px; }
.wub-ok-line {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #3FE0A0;
}
.wub-ok-line > div { width: 7px; height: 7px; border-radius: 50%; background: #3FE0A0; box-shadow: 0 0 10px #3FE0A0; }
.wub-pass h2 { margin: 0; font-family: Unbounded, sans-serif; font-weight: 700; font-size: 36px; line-height: 1.05; letter-spacing: -0.03em; color: #EDEAF5; }
.wub-pass-top p { margin: 0; font-size: 16px; line-height: 1.55; color: #A59FBD; }
.wub-pass-email { color: #EDEAF5; font-weight: 600; word-break: break-all; }

.wub-perf { position: relative; height: 24px; display: flex; align-items: center; }
.wub-perf-l, .wub-perf-r { position: absolute; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #06050B; }
.wub-perf-l { left: -12px; box-shadow: inset -1px 0 0 rgba(169,150,255,.28); }
.wub-perf-r { right: -12px; box-shadow: inset 1px 0 0 rgba(169,150,255,.28); }
.wub-perf-line { flex-grow: 1; margin: 0 22px; border-top: 2px dashed #2E2650; }

.wub-pass-bottom { padding: 26px 36px 36px; display: flex; flex-direction: column; gap: 22px; }
.wub-pass-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.wub-pass-col { display: flex; flex-direction: column; gap: 8px; }
.wub-pass-col-r { align-items: flex-end; }
.wub-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #8C86A3; }
.wub-code-val { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 20px; letter-spacing: 0.08em; color: #EDEAF5; }
.wub-pill {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #FFC46B;
  padding: 5px 10px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255,196,107,.4);
}

.wub-code {
  align-self: center; padding: 14px 16px; margin: -8px 0; border: 0; border-radius: 14px;
  background: transparent; cursor: pointer; opacity: .95;
  display: flex; align-items: center; justify-content: center;
  transition: filter .2s, transform .15s;
}
.wub-code:hover { filter: brightness(1.35) drop-shadow(0 0 10px rgba(124,92,255,.7)); }
.wub-code:active { transform: scale(.97); }
.wub-code svg { display: block; overflow: visible; }
.wub-bars rect { transform-box: fill-box; transform-origin: center; }
.wub-eq-a rect { animation: wub-eq-a .9s cubic-bezier(.3,.7,.3,1) both; }
.wub-eq-b rect { animation: wub-eq-b .9s cubic-bezier(.3,.7,.3,1) both; }

.wub-ok {
  height: 54px; border: 0; border-radius: 999px; background: var(--accent); color: #FFFFFF; cursor: pointer;
  font-family: Unbounded, sans-serif; font-weight: 700; font-size: 15px;
}
.wub-ok:hover { filter: brightness(1.12); }

/* ---------- низкие десктопные экраны ---------- */
@media (min-width: 640px) and (max-height: 820px) {
  .wub-header { padding-top: 28px; }
  .wub-main { gap: 32px; padding-bottom: 84px; }
  .wub-copy { gap: 18px; }
  .wub-scope { zoom: .8; }
}
@media (min-width: 640px) and (max-height: 700px) {
  .wub-header { padding-top: 22px; }
  .wub-main { gap: 24px; padding-bottom: 76px; }
  .wub-copy { gap: 14px; }
  .wub-copy p { font-size: 16px; }
  .wub-scope { zoom: .64; }
  .wub-flow { bottom: 48px; }
  .wub-footer { bottom: 32px; }
  .wub-pass { zoom: .85; }
}
@media (min-width: 640px) and (max-height: 560px) {
  .wub-scope { display: none; }
  .wub-main { padding-bottom: 64px; }
  .wub-flow { bottom: 36px; }
  .wub-pass { zoom: .7; }
}
@media (min-width: 640px) and (max-height: 440px) {
  .wub-copy p, .wub-footer { display: none; }
  .wub-main { padding-bottom: 40px; }
  .wub-flow { bottom: -34px; }
}

/* ---------- mobile (MobileV2, 390×844) ---------- */
@media (max-width: 639px) {
  .wub-desk { display: none; }
  .wub-mob { display: inline; }
  .wub-rings svg.wub-mob { display: block; }
  .wub-rings svg.wub-desk { display: none; }

  .aurora-1 { left: -173px; top: -173px; width: 520px; height: 520px; }
  .aurora-2 { right: -153px; bottom: -153px; width: 460px; height: 460px; }
  .sway { width: 420px; height: 380px; margin-left: -210px; }
  .beam { clip-path: polygon(41.7% 0, 58.3% 0, 100% 100%, 0 100%); filter: blur(10px); }
  .pool { left: 80px; top: 276px; width: 260px; height: 88px; }
  .wub-frame { display: block; inset: 10px; --r: 18px; --c: 12px; }

  .wub-header { padding: 24px 20px 0; padding-top: max(24px, env(safe-area-inset-top)); }
  .wub-wordmark { font-size: 19px; }
  .wub-status { font-size: 10px; letter-spacing: 0.1em; padding: 8px 12px; }

  .wub-main { gap: 32px; padding: 0 20px 110px; }

  .wub-rings { width: 900px; height: 900px; }
  .wub-wv { width: 290px; height: 290px; }
  .wub-slot { width: 270px; height: 104px; border-radius: 52px; gap: 24px; }
  .wub-eye-l { width: 58px; height: 58px; box-shadow: 0 0 0 4px #1B1433, 0 0 0 6px var(--accent), 0 0 28px 2px rgba(124,92,255,.45), inset 0 -5px 10px rgba(60,40,120,.35); }
  .wub-eye-r { width: 72px; height: 72px; box-shadow: 0 0 0 5px #1B1433, 0 0 0 7px var(--accent), 0 0 28px 2px rgba(124,92,255,.45), inset 0 -6px 13px rgba(60,40,120,.35); }
  .wub-eye-l .wub-pupil { width: 30px; height: 30px; }
  .wub-eye-l .wub-pupil-core { width: 13px; height: 13px; }
  .wub-eye-l .wub-glint { left: 6px; top: 5px; width: 7px; height: 7px; }
  .wub-eye-r .wub-pupil { width: 37px; height: 37px; }
  .wub-eye-r .wub-pupil-core { width: 16px; height: 16px; }
  .wub-eye-r .wub-glint { left: 7px; top: 6px; width: 8px; height: 8px; }
  .wub-brow { left: -9px; top: -12px; width: 75px; height: 32px; border-bottom-width: 5px; }
  .wub-eye-l .wub-lid { border-bottom-width: 5px; }

  .wub-copy { gap: 16px; }
  .eyebrow { gap: 12px; margin-bottom: 0; }
  .eyebrow__text { font-size: 11px; letter-spacing: 0.24em; }
  .eyebrow__rail { width: 36px; }
  .wub-copy h1 { font-size: 34px; line-height: 1.08; }
  .wub-copy p { max-width: 340px; font-size: 16px; }

  .wub-field { max-width: 350px; height: 60px; padding: 6px 6px 6px 20px; }
  .wub-input { height: 48px; font-size: 16px; }
  .wub-btn { height: 48px; min-width: 112px; padding: 0 18px; }
  .wub-done { max-width: 350px; height: 60px; font-size: 15px; }

  .wub-flow { bottom: 56px; }
  .wub-footer { left: 20px; right: 20px; bottom: 26px; bottom: max(26px, env(safe-area-inset-bottom)); font-size: 10px; letter-spacing: 0.1em; }

  .wub-rip { width: 380px; height: 380px; }
  .wub-pass { width: 340px; }
  .wub-pass-top { padding: 26px 26px 20px; }
  .wub-mini { width: 142px; height: 54px; border-radius: 27px; gap: 16px; }
  .wub-mini svg { width: 27px; height: 16px; }
  .wub-pass h2 { font-size: 28px; }
  .wub-pass-top p { font-size: 15px; }
  .wub-pass-bottom { padding: 16px 26px 26px; }
  .wub-code-val { font-size: 17px; }
}
@media (max-width: 639px) and (max-height: 740px) {
  .wub-header { padding-top: max(18px, env(safe-area-inset-top)); }
  .wub-main { gap: 22px; padding-bottom: 92px; }
  .wub-copy { gap: 12px; }
  .wub-copy h1 { font-size: 30px; }
  .wub-copy p { font-size: 15px; }
  .wub-scope { zoom: .82; }
  .wub-flow { bottom: 42px; }
  .wub-footer { bottom: max(22px, env(safe-area-inset-bottom)); }
  .wub-pass { zoom: .9; }
}
@media (max-width: 639px) and (max-height: 600px) {
  .wub-copy p { display: none; }
  .wub-pass { zoom: .8; }
}
@media (max-width: 359px) {
  .eyebrow__rail { width: 24px; }
  .wub-status { letter-spacing: 0.06em; padding: 7px 10px; gap: 8px; }
  .wub-copy h1 { font-size: 28px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .wub-dot, .wub-slot, .wub-lid, .wub-spin, .wub-w1, .wub-w2,
  .wub-rip, .wub-shine, .wub-btn-dots > span,
  .aurora-1, .aurora-2, .beam, .sway, .sway2, .dust-layer, .dust-layer2, .sweep { animation: none !important; }
  .dust { animation: none !important; opacity: var(--o); }
  .wub-wv { animation: none; opacity: 0; }
  .wub-rip { opacity: 0; }
  .wub-pass { animation: wub-fade .2s ease-out both; transform: rotate(-1.6deg); }
  .wub-pupil { transition: none; }
}
