

:root {
  --pass-bg: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 52%, rgba(139,92,246,0.07));
  --pass-line: rgba(255,255,255,0.14);
  --pass-glow: 0 50px 140px -60px rgba(139,92,246,0.65), 0 0 0 1px rgba(255,255,255,0.02);
  --wv-a: 0.85;
}
@media (prefers-color-scheme: light) {
  :root {
    --pass-bg: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(255,255,255,0.78));
    --pass-line: rgba(11,11,18,0.10);
    --pass-glow: 0 40px 110px -60px rgba(109,40,217,0.45);
    --wv-a: 0.6;
  }
  
  html:root {
    --g-sphere-hi: #ffffff;
    --g-sphere-mid: #f4f0ff;
    --g-sphere-lo: #dccffc;
    --g-graticule: rgba(109,40,217,0.10);
    --g-rim-out: rgba(139,92,246,0.24);
    --g-land: rgba(76,29,149,0.30);
    --g-land-edge: rgba(76,29,149,0.58);
  }
  html.wle .wl-mark img { filter: drop-shadow(0 0 0.6px rgba(46,16,101,0.95)) drop-shadow(0 0 0.6px rgba(46,16,101,0.95)) drop-shadow(0 3px 8px rgba(76,29,149,0.3)); }
}


html.wle .wl-main { grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); gap: 0 36px; padding: 40px 0 0; min-height: calc(100vh - 110px); align-items: center; }
html.wle .wl-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 3; }
html.wle .wl-globe-col { grid-column: 2; grid-row: 1; position: relative; top: auto; z-index: 2; }
html.wle .wl-stage { max-width: none; width: min(860px, 56vw, calc(100vh - 80px)); margin: 0 -5vw 0 auto; }
html.wle .wl-readout { margin-top: -2%; position: relative; z-index: 3; }
html.wle .wl-posture { grid-column: 1 / -1; grid-row: 2; max-width: none; border-top: 0; margin-top: 110px; padding-top: 0; }
@media (max-width: 1080px) {
  html.wle .wl-main { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; gap: 30px; }
  html.wle .wl-copy, html.wle .wl-globe-col, html.wle .wl-posture { grid-column: 1; grid-row: auto; }
  html.wle .wl-stage { width: min(94vw, 600px); margin: 0 auto; }
  html.wle .wl-posture { margin-top: 70px; }
}


html.wle h1.wl-h1 { font-size: clamp(40px, 5vw, 80px); line-height: 0.98; letter-spacing: -0.046em; margin-bottom: 22px; }
html.wle .wl-lead { font-size: clamp(16.5px, 1.35vw, 19.5px); max-width: 50ch; margin-bottom: 30px; }
html.wle .wl-eyebrow { box-shadow: 0 0 30px -8px rgba(167,139,250,0.6); }
html.wle .wl-top { position: relative; z-index: 5; }


html.wle .wl-form, html.wle .wl-joined {
  position: relative; max-width: 580px; padding: 26px 26px 24px; border-radius: 30px;
  background: var(--pass-bg); border: 1px solid var(--pass-line); box-shadow: var(--pass-glow);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d; will-change: transform;
}

html.wle .wl-form::after, html.wle .wl-joined::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, -10%), rgba(255,255,255,0.10), transparent 55%);
  opacity: var(--sheen, 0.6); transition: opacity 0.4s ease;
}

html.wle .wl-form::before, html.wle .wl-joined::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(56,189,248,0.7), rgba(139,92,246,0.25) 35%, rgba(232,121,249,0.0) 60%, rgba(232,121,249,0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
html.wle .wl-input, html.wle .wl-country { min-height: 58px; border-radius: 16px; font-size: 17px; }
html.wle .wl-input:focus { box-shadow: 0 0 0 4px var(--wl-accent-soft), 0 0 40px -10px rgba(139,92,246,0.7); }
html.wle .wl-submit { position: relative; overflow: hidden; min-height: 60px; border-radius: 16px; font-size: 16px; letter-spacing: -0.01em; transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, filter 0.25s ease; }
html.wle .wl-submit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.55) 48%, transparent 64%); transform: translateX(-120%); transition: transform 0.9s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
html.wle .wl-submit:hover::after { transform: translateX(120%); }
html.wle .wl-submit:hover { box-shadow: 0 22px 60px -18px rgba(139,92,246,0.9); }
html.wle .wl-submit:active { transform: scale(0.975); transition-duration: 0.08s; }
html.wle .wl-country .cflag { width: 30px; height: 22.5px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,0.1); }
html.wle .wle-pin { width: 38px; height: 38px; margin: -8px -4px -8px 0; flex: 0 0 auto; filter: drop-shadow(0 6px 14px rgba(139,92,246,0.55)); transition: transform 0.5s cubic-bezier(.2,1.6,.4,1); }
html.wle .wl-country[data-empty="0"] .wle-pin { transform: translateY(-3px) rotate(-8deg) scale(1.08); }


html.wle .wl-count { font-size: 12.5px; letter-spacing: 0.18em; }
html.wle .wl-count strong { display: inline-block; margin: 0 0.18em; font-family: var(--font-display); font-size: clamp(38px, 3.8vw, 60px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; vertical-align: -0.16em; background: linear-gradient(135deg, #7dd3fc, #a78bfa 45%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
@media (prefers-color-scheme: light) { html.wle .wl-count strong { background: linear-gradient(135deg, #0284c7, #7c3aed 45%, #c026d3); -webkit-background-clip: text; background-clip: text; } }
html.wle .wl-live[data-live="1"] i { box-shadow: 0 0 0 0 rgba(110,231,183,0.6); animation: wle-live 2.4s ease-out infinite; }
@keyframes wle-live { 0% { box-shadow: 0 0 0 0 rgba(110,231,183,0.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(110,231,183,0); } }


.wle-waves { position: absolute; left: 0; right: 0; top: 62vh; height: 56vh; z-index: 0; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent); will-change: transform; }
.wle-wave { position: absolute; left: 0; top: 0; width: 200%; height: 100%; will-change: transform; animation: wle-drift var(--dur, 30s) linear infinite; opacity: var(--wv-a); }
.wle-wave.rev { animation-direction: reverse; }
@keyframes wle-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }


.wle-open { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.wle-open img { position: absolute; left: 0; top: 0; width: 220px; height: auto; will-change: transform, opacity; filter: drop-shadow(0 0 60px rgba(139,92,246,0.7)); }
.wle-flare { position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(167,139,250,0.5) 30%, rgba(232,121,249,0) 68%); opacity: 0; z-index: 91; mix-blend-mode: screen; }


html.wle .wl-posture h2 { margin: 0 auto 44px; max-width: 18ch; text-wrap: balance; text-align: center; font-family: var(--font-display); font-size: clamp(32px, 4vw, 62px); line-height: 1.02; font-weight: 800; letter-spacing: -0.045em; text-transform: none; color: var(--wl-t1); }
html.wle .wl-posture ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; perspective: 1400px; }
html.wle .wl-posture li { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 420px; padding: 24px 22px 22px; border: 1px solid var(--pass-line) !important; border-radius: 28px; background: var(--pass-bg); box-shadow: var(--pass-glow); overflow: hidden; color: var(--wl-t2); font-size: 16px; line-height: 1.5; will-change: transform, opacity; }
html.wle .wl-posture li::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 55% at 30% 0%, var(--tint, rgba(139,92,246,0.18)), transparent 70%); }
html.wle .wl-posture li b { width: auto; font-size: 11.5px; letter-spacing: 0.24em; color: var(--wl-accent); position: relative; }
html.wle .wl-posture li > span { position: relative; color: var(--wl-t1); font-size: 17px; line-height: 1.45; letter-spacing: -0.01em; }
.wle-emoji { position: relative; width: 104px; height: 104px; margin: -8px 0 -4px -10px; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45)) drop-shadow(0 0 26px rgba(167,139,250,0.35)); will-change: transform; }
.wle-shot { position: relative; margin-top: auto; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 24px 60px -24px rgba(0,0,0,0.85); will-change: transform; }
.wle-shot img { display: block; width: 100%; height: auto; }
.wle-when { position: relative; margin-top: auto; display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(167,139,250,0.35); background: rgba(139,92,246,0.12); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wl-t1); }
.wle-when i { width: 6px; height: 6px; border-radius: 50%; background: #e879f9; box-shadow: 0 0 10px #e879f9; }
@media (max-width: 1080px) { html.wle .wl-posture ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  html.wle .wl-posture ul { grid-template-columns: 1fr; }
  html.wle .wl-posture li { min-height: 0; }
  .wle-emoji { width: 84px; height: 84px; }
}


.wle-shock { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid #f0abfc; box-shadow: 0 0 24px rgba(232,121,249,0.8); pointer-events: none; z-index: 5; }
.wle-burst { position: fixed; width: 88px; height: 88px; margin: -44px 0 0 -44px; filter: drop-shadow(0 10px 24px rgba(139,92,246,0.55)); pointer-events: none; z-index: 80; will-change: transform, opacity; }
.wle-haptic { position: fixed; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .wle-wave, html.wle .wl-live[data-live="1"] i { animation: none !important; }
  .wle-open, .wle-burst, .wle-shock { display: none !important; }
  html.wle .wl-form, html.wle .wl-joined { transform: none !important; }
  html.wle .wl-submit::after { display: none; }
}
