/* PulsePromo auth + MAX capture flow */
#pulseCapture{
  --s-bg:#120a06;
  --s-accent:#fbbf24;
  --s-accent-2:#f97316;
  --s-text:#fff8f0;
  --s-text-muted:#c4a882;
  --s-card-bg:rgba(18,10,4,.94);
  --s-card-border:rgba(251,191,36,.22);
  --s-btn-text:#1a0e06;
  --s-btn-radius:14px;
}

/* ── Auth gate (not authorized) ── */
.pulse-auth-gate,.pulse-login-hub{
  position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;
  padding:20px;opacity:0;pointer-events:none;visibility:hidden;
  transition:opacity .42s ease,visibility .42s ease;
}
.pulse-auth-gate.open,.pulse-login-hub.open{opacity:1;pointer-events:auto;visibility:visible}
.pulse-auth-gate-backdrop,.pulse-login-hub-backdrop{
  position:absolute;inset:0;background:rgba(0,0,0,.78);
  transition:background .42s ease;
}
.pulse-auth-gate-card{
  position:relative;width:100%;max-width:340px;padding:36px 28px 28px;text-align:center;
  background:rgba(14,8,4,.95);border:1px solid rgba(251,191,36,.28);border-radius:22px;
  box-shadow:0 24px 80px rgba(0,0,0,.65),0 0 40px rgba(249,115,22,.08);
  transform:scale(.94) translateY(16px);transition:transform .35s cubic-bezier(.34,1.2,.64,1);
}
.pulse-auth-gate.open .pulse-auth-gate-card,.pulse-login-hub.open .pulse-login-hub-card{transform:none}
.pulse-auth-gate-close,.pulse-login-hub-close{
  position:absolute;top:12px;right:12px;width:34px;height:34px;border:none;border-radius:10px;cursor:pointer;
  background:rgba(255,255,255,.06);color:rgba(255,248,240,.5);display:grid;place-items:center;
}
.pulse-auth-gate-icon{
  width:52px;height:52px;margin:0 auto 20px;display:grid;place-items:center;border-radius:14px;
  background:rgba(251,191,36,.12);border:1px solid rgba(251,191,36,.3);color:#fbbf24;
}
.pulse-auth-gate-title{
  font-family:'Syne','Inter',sans-serif;font-size:1.15rem;font-weight:800;letter-spacing:.04em;
  color:#fbbf24;margin-bottom:10px;line-height:1.2;
}
.pulse-auth-gate-text{font-size:.84rem;color:rgba(255,248,240,.55);line-height:1.55;margin-bottom:8px}
.pulse-auth-gate-game{font-size:.72rem;color:rgba(251,191,36,.7);margin-bottom:22px;font-weight:600}
.pulse-auth-gate-btn{
  width:100%;padding:14px 20px;border:none;border-radius:100px;cursor:pointer;
  font-family:inherit;font-size:.82rem;font-weight:800;letter-spacing:.06em;
  background:linear-gradient(130deg,#fde047,#fbbf24,#f97316);color:#1a0e06;
  box-shadow:0 8px 28px rgba(249,115,22,.35);transition:transform .12s;
}
.pulse-auth-gate-btn:active{transform:scale(.98)}

/* ── Login hub ── */
.pulse-login-hub-card{
  position:relative;width:100%;max-width:360px;padding:26px 20px 20px;
  background:rgba(12,7,4,.96);border:1px solid rgba(251,191,36,.2);border-radius:22px;
  box-shadow:0 28px 90px rgba(0,0,0,.7);
  transform:scale(.94) translateY(16px);transition:transform .35s cubic-bezier(.34,1.2,.64,1);
}
.pulse-login-hub-title{
  font-family:'Syne','Inter',sans-serif;font-size:1.35rem;font-weight:800;line-height:1.15;
  color:#fff8f0;margin:0 0 6px;text-align:center;
}
.pulse-login-hub-sub{
  margin:0 0 18px;text-align:center;font-size:.8rem;color:rgba(255,248,240,.42);line-height:1.45;
}
.pulse-login-hub-terms{
  display:flex;align-items:flex-start;gap:10px;margin-bottom:16px;cursor:pointer;text-align:left;
}
.pulse-terms-input{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.pulse-terms-box{
  width:20px;height:20px;margin-top:1px;flex-shrink:0;display:grid;place-items:center;border-radius:6px;
  border:1.5px solid rgba(251,191,36,.32);background:rgba(255,255,255,.04);
  transition:background .18s,border-color .18s,box-shadow .18s;
}
.pulse-terms-check{
  display:block;color:#1a0e06;opacity:0;transform:scale(.55);
  transition:opacity .16s ease,transform .16s ease;
}
.pulse-terms-input:checked+.pulse-terms-box{
  background:linear-gradient(130deg,#fde047,#fbbf24);
  border-color:#fbbf24;box-shadow:0 0 0 3px rgba(251,191,36,.12);
}
.pulse-terms-input:checked+.pulse-terms-box .pulse-terms-check{opacity:1;transform:scale(1)}
.pulse-terms-input:focus-visible+.pulse-terms-box{box-shadow:0 0 0 3px rgba(251,191,36,.22)}
.pulse-terms-text{font-size:.74rem;color:rgba(255,248,240,.55);line-height:1.45}
.pulse-login-hub-terms a{color:#fbbf24;text-decoration:none}
.pulse-login-stack{display:flex;flex-direction:column;gap:10px}
.pulse-login-option{
  width:100%;display:flex;align-items:center;gap:14px;padding:13px 14px;border-radius:14px;cursor:pointer;
  font-family:inherit;font-size:.92rem;font-weight:600;color:#fff8f0;text-align:left;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
  transition:background .15s,border-color .15s,transform .1s,opacity .15s;
}
.pulse-login-option:active{transform:scale(.99)}
.pulse-login-option:hover:not(:disabled){
  background:rgba(255,255,255,.07);border-color:rgba(251,191,36,.22);
}
.pulse-login-option:disabled{opacity:.42;cursor:not-allowed}
.pulse-login-option-icon{
  width:40px;height:40px;flex-shrink:0;display:grid;place-items:center;border-radius:11px;
}
.pulse-login-option-icon img{display:block;width:24px;height:24px}
.pulse-login-option--max .pulse-login-option-icon{background:transparent;padding:0}
.pulse-login-option--max .pulse-login-option-icon img{width:40px;height:40px;border-radius:11px}
.pulse-login-option--wechat .pulse-login-option-icon{background:#07c160}
.pulse-login-option--twitter .pulse-login-option-icon{background:#0f0f0f;border:1px solid rgba(255,255,255,.1)}
.pulse-login-option-text{flex:1}
.pulse-login-option.shake{animation:pulseShake .4s ease}
@keyframes pulseShake{
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-6px)}
  40%{transform:translateX(6px)}
  60%{transform:translateX(-4px)}
  80%{transform:translateX(4px)}
}

.pulse-toast{
  position:fixed;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%) translateY(20px);
  z-index:120;padding:12px 18px;border-radius:100px;font-size:.78rem;font-weight:600;
  background:rgba(18,10,4,.95);border:1px solid rgba(251,191,36,.35);color:#fde047;
  opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;white-space:nowrap;
}
.pulse-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ── Capture overlay ── */
#pulseCapture{
  position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;
  padding:calc(76px + env(safe-area-inset-top,0px)) 16px max(20px,env(safe-area-inset-bottom));
  background:rgba(0,0,0,.82);
  overflow-y:auto;
  opacity:0;pointer-events:none;visibility:hidden;
  transition:opacity .38s ease,visibility .38s ease;
}
#pulseCapture.open{opacity:1;pointer-events:auto;visibility:visible}
#pulseCapture .screen{width:100%;max-width:360px;display:none;flex-direction:column;gap:12px;animation:pcFadeUp .32s cubic-bezier(.34,1.1,.64,1) both}
#pulseCapture .screen.active{display:flex}
@keyframes pcFadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
#pulseCapture .card{background:var(--s-card-bg);border:1px solid var(--s-card-border);border-radius:18px;padding:20px 18px;box-shadow:0 20px 60px rgba(0,0,0,.55)}
#pulseCapture .block-title{font-size:15px;font-weight:700;color:#fff;letter-spacing:-.2px;margin-bottom:6px}
#pulseCapture .block-text{font-size:12.5px;color:rgba(255,255,255,.45);line-height:1.55}
#pulseCapture .pf{display:flex;align-items:center;background:rgba(255,255,255,.06);border:1.5px solid rgba(255,255,255,.10);border-radius:14px;height:52px;overflow:hidden;transition:border-color .15s,box-shadow .15s;position:relative}
#pulseCapture .pf:focus-within{border-color:rgba(251,191,36,.55);box-shadow:0 0 0 3px rgba(251,191,36,.12)}
#pulseCapture .pf.err{border-color:rgba(248,113,113,.6);animation:pulseShake .3s}
#pulseCapture .pf-pre{display:flex;align-items:center;gap:7px;padding:0 10px 0 14px;border-right:1px solid rgba(255,255,255,.08);height:100%;flex-shrink:0}
#pulseCapture .pf-code{font-size:15px;font-weight:600;color:rgba(255,255,255,.9)}
#pulseCapture .pf-inp{flex:1;min-width:0;height:100%;background:transparent;border:none;outline:none;padding:0 10px;font-family:inherit;font-size:16px;color:#fff;caret-color:#fff}
#pulseCapture .pf-inp::placeholder{color:rgba(255,255,255,.2)}
#pulseCapture .pf-inp:-webkit-autofill,
#pulseCapture .pf-inp:-webkit-autofill:hover,
#pulseCapture .pf-inp:-webkit-autofill:focus,
#pulseCapture .pf-inp:-webkit-autofill:active{
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 0 0 1000px rgba(255,255,255,.06) inset!important;
  transition:background-color 99999s ease-out 0s;
}
#pulseCapture .pf-clear{width:36px;height:100%;flex-shrink:0;background:none;border:none;cursor:pointer;display:none;align-items:center;justify-content:center}
#pulseCapture .pf-clear.vis{display:flex}
#pulseCapture .btn{width:100%;height:50px;color:var(--s-btn-text);font-family:inherit;font-size:15px;font-weight:700;border:none;border-radius:100px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px}
#pulseCapture .btn:disabled{opacity:.35;cursor:not-allowed}
#pulseCapture .btn-accent{background:linear-gradient(130deg,#fde047,#fbbf24,#f97316);box-shadow:0 4px 18px rgba(249,115,22,.28)}
#pulseCapture .back-btn{display:inline-flex;align-items:center;gap:5px;background:none;border:none;cursor:pointer;padding:0;font-family:inherit;font-size:13px;color:rgba(255,255,255,.35);margin-bottom:14px;transition:color .15s}
#pulseCapture .back-btn:hover{color:rgba(255,255,255,.65)}
#pulseCapture .sent-label{font-size:13px;color:rgba(255,255,255,.4);margin-bottom:14px}
#pulseCapture .sent-label strong{color:rgba(255,255,255,.8);font-weight:600}
#pulseCapture .code-boxes{display:flex;gap:7px;margin-bottom:10px;position:relative}
#pulseCapture .otp-autofill-trap{position:absolute;inset:0;width:100%;height:52px;opacity:.02;border:0;background:transparent;z-index:2;font-size:16px}
#pulseCapture .code-box{flex:1;min-width:0;height:52px;background:rgba(255,255,255,.06);border:1.5px solid rgba(255,255,255,.10);border-radius:12px;text-align:center;font-family:inherit;font-size:22px;font-weight:700;color:#fff;outline:none}
#pulseCapture .code-box:focus{border-color:rgba(251,191,36,.7);background:rgba(251,191,36,.07)}
#pulseCapture .code-box.filled{border-color:rgba(251,191,36,.4)}
#pulseCapture .code-box.err{border-color:rgba(248,113,113,.6)!important;animation:pulseShake .3s}
#pulseCapture .resend-row{display:flex;align-items:center;justify-content:space-between;min-height:22px;margin-bottom:10px}
#pulseCapture .timer-txt{font-size:12px;color:rgba(255,255,255,.28)}
#pulseCapture .timer-txt b{color:#fbbf24}
#pulseCapture .resend-btn{font-family:inherit;font-size:12px;font-weight:600;color:#fbbf24;background:none;border:none;cursor:pointer}
#pulseCapture .resend-btn:disabled{opacity:.25;cursor:not-allowed}
#pulseCapture .msg{border-radius:10px;font-size:12.5px;padding:9px 12px;display:none;margin-top:8px;line-height:1.5;min-height:0}
#pulseCapture .msg.show{display:block}
#pulseCapture .msg.show+.btn{margin-top:12px}
#pulseCapture #scrPhone .btn{margin-top:12px}
#pulseCapture #scrPhone .legal{margin-top:14px}
#pulseCapture .msg.e{background:rgba(248,113,113,.09);color:#fca5a5;border:1px solid rgba(248,113,113,.16)}
#pulseCapture .msg.s{background:rgba(50,200,100,.09);color:#60d880;border:1px solid rgba(50,200,100,.16)}
#pulseCapture .msg.w{background:rgba(255,255,255,.04);color:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.08);text-align:center}
#pulseCapture .max-hint{background:rgba(251,191,36,.07);border:1px solid rgba(251,191,36,.18);border-radius:12px;padding:11px 13px;margin-top:10px;display:none;font-size:12px;color:rgba(255,220,160,.85);line-height:1.6}
#pulseCapture .max-hint.show{display:block}
#pulseCapture .max-hint a{color:#fde047;text-decoration:none;font-weight:600}
#pulseCapture .numpad{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}
#pulseCapture .numpad-btn{height:48px;background:rgba(255,255,255,.07);border:1.5px solid rgba(255,255,255,.09);border-radius:14px;color:#fff;font-family:inherit;font-size:20px;font-weight:600;cursor:pointer}
#pulseCapture .numpad-view-btn{display:flex;align-items:center;justify-content:center;width:100%;height:44px;background:rgba(255,255,255,.05);border:1.5px solid rgba(255,255,255,.10);border-radius:100px;cursor:pointer;font-family:inherit;font-size:13.5px;font-weight:600;color:rgba(255,255,255,.6);margin-bottom:10px}
#pulseCapture .numpad-spacer{height:48px;visibility:hidden}
#pulseCapture .legal{font-size:11px;color:rgba(255,255,255,.22);text-align:center;line-height:1.7;margin-top:8px}
#pulseCapture .legal a{color:rgba(251,191,36,.75);text-decoration:none}
#pulseCapture .legal a:hover{color:#fde047;text-decoration:underline}
#pulseCapture .card--done{
  position:relative;
  padding:0;overflow:hidden;
  background:linear-gradient(165deg,rgba(22,12,6,.98),rgba(14,8,4,.96));
  border:1px solid rgba(251,191,36,.2);
  box-shadow:0 24px 70px rgba(0,0,0,.55),0 0 40px rgba(249,115,22,.06);
}
#pulseCapture .done-close{
  position:absolute;top:12px;right:12px;z-index:2;
  width:34px;height:34px;border:none;border-radius:10px;cursor:pointer;
  background:rgba(255,255,255,.06);color:rgba(255,248,240,.5);
  display:grid;place-items:center;
  transition:background .15s,color .15s;
}
#pulseCapture .done-close:hover{background:rgba(255,255,255,.1);color:rgba(255,248,240,.85)}
#pulseCapture .done-panel{padding:22px 18px 18px}
#pulseCapture .done-hero{text-align:center;margin-bottom:18px}
#pulseCapture .done-success{
  position:relative;width:56px;height:56px;margin:0 auto 14px;
  display:grid;place-items:center;border-radius:50%;
  color:#4ade80;
  background:linear-gradient(145deg,rgba(34,197,94,.18),rgba(34,197,94,.06));
  border:1px solid rgba(74,222,128,.35);
  box-shadow:0 8px 28px rgba(34,197,94,.15);
}
#pulseCapture .done-success-glow{
  position:absolute;inset:-8px;border-radius:50%;
  background:radial-gradient(circle,rgba(74,222,128,.25),transparent 70%);
  animation:doneGlow 2.4s ease-in-out infinite;
}
@keyframes doneGlow{
  0%,100%{opacity:.5;transform:scale(1)}
  50%{opacity:1;transform:scale(1.06)}
}
#pulseCapture .done-title{
  font-family:'Syne','Inter',sans-serif;font-size:1.2rem;font-weight:800;
  color:#fff8f0;margin:0 0 8px;line-height:1.25;
}
#pulseCapture .done-text{
  font-size:.78rem;color:rgba(255,248,240,.48);line-height:1.55;
  margin:0 auto;max-width:28ch;
}
#pulseCapture .done-script-block{margin-top:4px}
#pulseCapture .done-meta{
  display:flex;align-items:center;justify-content:center;gap:8px;
  flex-wrap:wrap;margin-bottom:14px;
}
#pulseCapture .done-script-badge{
  display:inline-flex;padding:4px 10px;border-radius:100px;
  font-size:.58rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:#fde047;background:rgba(251,191,36,.12);border:1px solid rgba(251,191,36,.28);
}
#pulseCapture .done-game-name{
  font-size:.76rem;font-weight:600;color:rgba(255,248,240,.72);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(100%,220px);
}
#pulseCapture .done-code-card{
  position:relative;padding:18px 16px 16px;border-radius:16px;text-align:center;
  background:linear-gradient(145deg,rgba(251,191,36,.08),rgba(0,0,0,.2));
  border:1px solid rgba(251,191,36,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 8px 24px rgba(0,0,0,.25);
  margin-bottom:14px;
}
#pulseCapture .done-code-card::before{
  content:'';position:absolute;inset:0;border-radius:16px;pointer-events:none;
  background:linear-gradient(135deg,rgba(253,224,71,.08),transparent 55%);
}
#pulseCapture .done-code-kicker{
  display:block;font-size:.58rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(251,191,36,.65);margin-bottom:10px;
}
#pulseCapture .done-script-code{
  position:relative;z-index:1;margin:0;padding:0;
  font-family:'Inter',ui-monospace,Consolas,monospace;
  font-size:clamp(1.25rem,5.5vw,1.55rem);font-weight:800;letter-spacing:.14em;
  color:#fde047;text-align:center;word-break:break-all;line-height:1.2;
}
#pulseCapture .done-retention{
  margin:0 0 14px;padding:10px 12px;border-radius:12px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);
}
#pulseCapture .done-retention-track{height:4px;border-radius:4px;background:rgba(255,255,255,.08);overflow:hidden;margin-bottom:6px}
#pulseCapture .done-retention-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,#f59e0b,#fde047);border-radius:4px;transition:width .5s ease}
#pulseCapture .done-retention-text{margin:0;font-size:.68rem;line-height:1.45;color:rgba(255,248,240,.55);text-align:center}
#pulseCapture .done-actions{display:flex;flex-direction:column;gap:8px}
#pulseCapture .done-script-copy{
  display:flex;align-items:center;justify-content:center;gap:8px;width:100%;
  padding:14px 18px;border:none;border-radius:14px;cursor:pointer;
  font-family:inherit;font-size:.86rem;font-weight:700;color:#1a0e06;
  background:linear-gradient(130deg,#fde047,#fbbf24,#f97316);
  box-shadow:0 8px 24px rgba(249,115,22,.3);
  transition:transform .12s,box-shadow .2s,background .2s;
}
#pulseCapture .done-script-copy:active{transform:scale(.98)}
#pulseCapture .done-script-copy.copied{
  background:linear-gradient(130deg,#22c55e,#16a34a);color:#fff;
  box-shadow:0 8px 24px rgba(34,197,94,.28);
}
#pulseCapture .done-script-hint{
  margin:14px 0 0;font-size:.64rem;color:rgba(255,248,240,.28);
  text-align:center;line-height:1.5;
}
#pulseCapture .pwd-prep-card{text-align:center}
#pulseCapture .pwd-prep-card .back-btn{display:flex;justify-content:flex-start;width:100%}
#pulseCapture .pwd-prep-icon{font-size:2.2rem;margin-bottom:8px}
#pulseCapture .pwd-prep-text{margin:10px 0 18px;text-align:left}
#pulseCapture .pwd-prep-confirm-hint{font-size:12.5px;color:rgba(120,255,180,.85);margin:0 0 12px;padding:10px 12px;border-radius:12px;background:rgba(80,200,120,.08);border:1px solid rgba(80,200,120,.2)}
#pulseCapture .sp{width:16px;height:16px;border:2.5px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;animation:pcRot .5s linear infinite;display:inline-block}
@keyframes pcRot{to{transform:rotate(360deg)}}

.country-picker{position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:300;display:none;align-items:flex-end;justify-content:center;transition:background .3s ease}
.country-picker.open{display:flex}
.country-picker .cp-box{background:#130a06;border:1px solid rgba(251,191,36,.12);border-radius:20px 20px 0 0;width:100%;max-width:420px;max-height:75dvh;display:flex;flex-direction:column}
.country-picker .cp-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 10px}
.country-picker .cp-title{font-size:15px;font-weight:700;color:#fff}
.country-picker .cp-close{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.5);cursor:pointer;display:flex;align-items:center;justify-content:center}
.country-picker .cp-search{margin:0 14px 10px;background:rgba(255,255,255,.06);border:1.5px solid rgba(255,255,255,.1);border-radius:12px;height:40px;display:flex;align-items:center;padding:0 12px}
.country-picker .cp-search input{flex:1;background:none;border:none;outline:none;font-family:inherit;font-size:14px;color:#fff}
.country-picker .cp-list{overflow-y:auto;flex:1;padding:0 8px 16px}
.country-picker .cp-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;cursor:pointer}
.country-picker .cp-item:hover{background:rgba(255,255,255,.07)}
.country-picker .cp-item.active{background:rgba(251,191,36,.14)}
.country-picker .cp-name{font-size:14px;color:rgba(255,255,255,.85);flex:1}
.country-picker .cp-dial{font-size:13px;color:rgba(255,255,255,.4);font-weight:600}
.country-picker .cp-flag svg{border-radius:2px}

.pulse-capture-ovl{position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:200;display:flex;align-items:flex-end;justify-content:center;opacity:0;pointer-events:none;visibility:hidden;transition:opacity .35s ease,visibility .35s ease}
.pulse-capture-ovl.open{opacity:1;pointer-events:auto;visibility:visible}
@media(min-width:480px){.pulse-capture-ovl{align-items:center;padding:20px}}
.pulse-capture-ovl-box{background:#130a06;border:1px solid rgba(251,191,36,.12);border-radius:20px 20px 0 0;width:100%;max-width:420px;padding:0 20px 20px}
@media(min-width:480px){.pulse-capture-ovl-box{border-radius:20px}}
.pulse-capture-ovl.open .pulse-capture-ovl-box{transform:none}
.pulse-capture-ovl-head{display:flex;align-items:center;justify-content:space-between;padding:18px 0 0}
.pulse-capture-ovl-title{font-size:16px;font-weight:700;color:#fff}
.pulse-capture-ovl-close{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.5);cursor:pointer}
.pulse-capture-ovl-body{padding:14px 0 20px;font-size:13.5px;color:rgba(255,255,255,.55);line-height:1.7}
.pulse-capture-ovl-btn{display:block;width:100%;height:46px;background:linear-gradient(130deg,#fde047,#fbbf24,#f97316);color:#1a0e06;font-family:inherit;font-size:15px;font-weight:700;border:none;border-radius:100px;cursor:pointer}

/* Night theme — auth modals + capture */
body.pulse-theme-night .pulse-auth-gate-card,
body.pulse-theme-night .pulse-login-hub-card{
  background:rgba(8,10,24,.94);
  border-color:rgba(129,140,248,.22);
  box-shadow:0 28px 90px rgba(0,0,0,.75),0 0 40px rgba(99,102,241,.08);
}
body.pulse-theme-night .pulse-auth-gate-icon{
  background:rgba(99,102,241,.14);
  border-color:rgba(165,180,252,.32);
  color:#a5b4fc;
}
body.pulse-theme-night .pulse-auth-gate-title{color:#c7d2fe}
body.pulse-theme-night .pulse-auth-gate-game{color:rgba(165,180,252,.85)}
body.pulse-theme-night .pulse-auth-gate-btn{
  background:linear-gradient(130deg,#a5b4fc,#818cf8,#6366f1);
  color:#fff;
  box-shadow:0 8px 28px rgba(99,102,241,.38);
}
body.pulse-theme-night .pulse-login-hub-title{color:#eef2ff}
body.pulse-theme-night .pulse-terms-box{border-color:rgba(165,180,252,.35);background:rgba(255,255,255,.03)}
body.pulse-theme-night .pulse-terms-input:checked+.pulse-terms-box{
  background:linear-gradient(130deg,#818cf8,#6366f1);
  border-color:#818cf8;
  box-shadow:0 0 0 3px rgba(99,102,241,.18);
}
body.pulse-theme-night .pulse-terms-input:focus-visible+.pulse-terms-box{box-shadow:0 0 0 3px rgba(99,102,241,.28)}
body.pulse-theme-night .pulse-terms-text a,
body.pulse-theme-night .pulse-login-hub-terms a{color:#a5b4fc}
body.pulse-theme-night .pulse-login-option{
  background:rgba(255,255,255,.04);
  border-color:rgba(165,180,252,.14);
}
body.pulse-theme-night .pulse-login-option:hover:not(:disabled){
  background:rgba(99,102,241,.12);
  border-color:rgba(165,180,252,.28);
}
body.pulse-theme-night #pulseCapture{
  --s-bg:#060814;
  --s-accent:#818cf8;
  --s-accent-2:#38bdf8;
  --s-text:#eef2ff;
  --s-text-muted:#94a3b8;
  --s-card-bg:rgba(8,10,24,.94);
  --s-card-border:rgba(129,140,248,.22);
  --s-btn-text:#fff;
}
body.pulse-theme-night #pulseCapture .pf:focus-within{
  border-color:rgba(129,140,248,.55)!important;
  box-shadow:0 0 0 3px rgba(99,102,241,.14)!important;
}
body.pulse-theme-night #pulseCapture .code-box:focus{
  border-color:rgba(129,140,248,.7)!important;
  background:rgba(99,102,241,.08)!important;
}
body.pulse-theme-night #pulseCapture .code-box.filled{border-color:rgba(129,140,248,.4)!important}
body.pulse-theme-night #pulseCapture .timer-txt b{color:#a5b4fc}
body.pulse-theme-night #pulseCapture .resend-btn{color:#818cf8}
body.pulse-theme-night #pulseCapture .max-hint{
  background:rgba(99,102,241,.1);
  border-color:rgba(129,140,248,.22);
  color:rgba(199,210,254,.9);
}
body.pulse-theme-night #pulseCapture .max-hint a{color:#c7d2fe}
body.pulse-theme-night #pulseCapture .legal a{color:rgba(165,180,252,.85)!important}
body.pulse-theme-night #pulseCapture .legal a:hover{color:#c7d2fe!important}
body.pulse-theme-night #pulseCapture .card--done{
  background:linear-gradient(165deg,rgba(8,10,24,.98),rgba(6,8,18,.96));
  border-color:rgba(129,140,248,.22);
  box-shadow:0 24px 70px rgba(0,0,0,.6),0 0 40px rgba(99,102,241,.1);
}
body.pulse-theme-night #pulseCapture .done-success{
  color:#86efac;
  background:linear-gradient(145deg,rgba(34,197,94,.16),rgba(99,102,241,.08));
  border-color:rgba(74,222,128,.3);
}
body.pulse-theme-night #pulseCapture .done-title{color:#eef2ff}
body.pulse-theme-night #pulseCapture .done-text{color:rgba(165,180,252,.55)}
body.pulse-theme-night #pulseCapture .done-script-badge{
  color:#c7d2fe;background:rgba(99,102,241,.16);border-color:rgba(129,140,248,.28);
}
body.pulse-theme-night #pulseCapture .done-game-name{color:rgba(199,210,254,.8)}
body.pulse-theme-night #pulseCapture .done-code-card{
  background:linear-gradient(145deg,rgba(99,102,241,.12),rgba(0,0,0,.25));
  border-color:rgba(129,140,248,.24);
}
body.pulse-theme-night #pulseCapture .done-code-card::before{
  background:linear-gradient(135deg,rgba(129,140,248,.1),transparent 55%);
}
body.pulse-theme-night #pulseCapture .done-code-kicker{color:rgba(165,180,252,.65)}
body.pulse-theme-night #pulseCapture .done-retention{
  background:rgba(99,102,241,.08);border-color:rgba(129,140,248,.15);
}
body.pulse-theme-night #pulseCapture .done-retention-track span{
  background:linear-gradient(90deg,#818cf8,#38bdf8);
}
body.pulse-theme-night #pulseCapture .done-retention-text{color:rgba(165,180,252,.65)}
body.pulse-theme-night #pulseCapture .done-script-code{color:#e0e7ff}
body.pulse-theme-night #pulseCapture .done-script-copy{
  background:linear-gradient(130deg,#a5b4fc,#818cf8,#6366f1)!important;
  color:#fff!important;box-shadow:0 8px 24px rgba(99,102,241,.32)!important;
}
body.pulse-theme-night #pulseCapture .done-script-copy.copied{
  background:linear-gradient(130deg,#22c55e,#16a34a)!important;
}
body.pulse-theme-night #pulseCapture .done-close{
  background:rgba(255,255,255,.06);color:rgba(165,180,252,.55);
}
body.pulse-theme-night #pulseCapture .done-close:hover{
  background:rgba(255,255,255,.1);color:rgba(226,232,240,.9);
}
body.pulse-theme-night #pulseCapture .done-script-hint{color:rgba(165,180,252,.35)}
body.pulse-theme-night #pulseCapture .btn-accent{
  background:linear-gradient(130deg,#a5b4fc,#818cf8,#6366f1)!important;
  color:#fff!important;
  box-shadow:0 4px 18px rgba(99,102,241,.35)!important;
}
body.pulse-theme-night .country-picker .cp-box{
  background:#080a18;
  border-color:rgba(129,140,248,.14);
}
body.pulse-theme-night .country-picker .cp-item.active{background:rgba(99,102,241,.16)}
body.pulse-theme-night .pulse-capture-ovl-box{
  background:#080a18;
  border-color:rgba(129,140,248,.14);
}
body.pulse-theme-night .pulse-capture-ovl-btn{
  background:linear-gradient(130deg,#a5b4fc,#818cf8,#6366f1)!important;
  color:#fff!important;
}
body.pulse-theme-night .pulse-toast{
  background:rgba(8,10,24,.95);
  border-color:rgba(129,140,248,.35);
  color:#c7d2fe;
}
body.pulse-theme-night #pulseCapture .pf-inp:-webkit-autofill,
body.pulse-theme-night #pulseCapture .pf-inp:-webkit-autofill:hover,
body.pulse-theme-night #pulseCapture .pf-inp:-webkit-autofill:focus,
body.pulse-theme-night #pulseCapture .pf-inp:-webkit-autofill:active{
  -webkit-text-fill-color:#eef2ff!important;
  box-shadow:0 0 0 1000px rgba(129,140,248,.08) inset!important;
}
body.pulse-theme-night #pulseCapture #smsHint{color:rgba(165,180,252,.75)!important}
body.pulse-theme-night #pulseCapture .back-btn{color:rgba(165,180,252,.5)}
body.pulse-theme-night #pulseCapture .back-btn:hover{color:#c7d2fe}

/* ── Cooldown + rewarded ad ── */
.pulse-cd-gate,.pulse-ad-player{
  position:fixed;inset:0;z-index:130;display:flex;align-items:center;justify-content:center;
  padding:20px;opacity:0;pointer-events:none;visibility:hidden;
  transition:opacity .38s ease,visibility .38s ease;
}
.pulse-cd-gate.open,.pulse-ad-player.open{opacity:1;pointer-events:auto;visibility:visible}
.pulse-cd-gate-backdrop{
  position:absolute;inset:0;background:rgba(0,0,0,.82);backdrop-filter:blur(6px);
}
.pulse-cd-gate-card{
  position:relative;width:100%;max-width:360px;padding:32px 24px 24px;text-align:center;
  background:linear-gradient(165deg,rgba(18,10,4,.98),rgba(28,14,6,.96));
  border:1px solid rgba(251,191,36,.28);border-radius:24px;
  box-shadow:0 28px 90px rgba(0,0,0,.7),0 0 48px rgba(249,115,22,.1);
  transform:scale(.94) translateY(18px);transition:transform .38s cubic-bezier(.34,1.2,.64,1);
}
.pulse-cd-gate.open .pulse-cd-gate-card{transform:none}
.pulse-cd-gate-close{
  position:absolute;top:12px;right:12px;width:36px;height:36px;border:none;border-radius:11px;cursor:pointer;
  background:rgba(255,255,255,.06);color:rgba(255,248,240,.55);display:grid;place-items:center;
}
.pulse-cd-gate-icon{
  width:56px;height:56px;margin:0 auto 16px;display:grid;place-items:center;border-radius:16px;
  background:linear-gradient(145deg,rgba(251,191,36,.2),rgba(249,115,22,.1));
  border:1px solid rgba(251,191,36,.35);color:#fbbf24;
}
.pulse-cd-gate-kicker{
  font-size:.58rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(251,191,36,.75);margin-bottom:8px;
}
.pulse-cd-gate-title{
  font-family:'Inter',sans-serif;font-size:.92rem;font-weight:600;line-height:1.45;
  color:#fff8f0;margin:0 0 14px;display:flex;flex-direction:column;gap:4px;
}
.pulse-cd-gate-title-text{font-weight:600;color:rgba(255,248,240,.75)}
.pulse-cd-gate-time{
  font-family:'Inter',sans-serif;font-size:1.35rem;font-weight:800;
  font-variant-numeric:tabular-nums;letter-spacing:-.02em;color:#fff8f0;
}
.pulse-cd-gate-text{
  font-size:.78rem;line-height:1.55;color:rgba(255,248,240,.52);margin:0 0 10px;
}
.pulse-cd-gate-ad-hint{
  font-size:.62rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:rgba(251,191,36,.65);margin:0 0 14px;
}
.pulse-cd-gate-used{
  font-size:.76rem;line-height:1.5;color:rgba(255,248,240,.48);
  margin:0 0 18px;padding:12px 14px;border-radius:12px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
}
.pulse-cd-gate-watch{
  width:100%;display:flex;align-items:center;justify-content:center;gap:10px;
  padding:15px 20px;border:none;border-radius:100px;cursor:pointer;
  font-family:inherit;font-size:.84rem;font-weight:800;letter-spacing:.03em;
  background:linear-gradient(130deg,#fde047,#fbbf24,#f97316);color:#1a0e06;
  box-shadow:0 10px 32px rgba(249,115,22,.38);transition:transform .12s,box-shadow .2s;
}
.pulse-cd-gate-watch:hover{box-shadow:0 12px 38px rgba(249,115,22,.48)}
.pulse-cd-gate-watch:active{transform:scale(.98)}
.pulse-cd-gate-watch-icon{
  width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
  background:rgba(26,14,6,.18);font-size:.7rem;
}
.pulse-cd-gate-wait{
  width:100%;margin-top:10px;padding:12px;border:none;border-radius:100px;cursor:pointer;
  font-family:inherit;font-size:.76rem;font-weight:600;color:rgba(255,248,240,.45);
  background:transparent;transition:color .15s;
}
.pulse-cd-gate-wait:hover{color:rgba(255,248,240,.7)}
.pulse-cd-gate-sponsor{
  margin:16px 0 0;font-size:.58rem;letter-spacing:.06em;text-transform:uppercase;
  color:rgba(255,248,240,.28);
}

.pulse-ad-player{align-items:flex-end;padding:0}
.pulse-ad-player-shell{
  position:relative;width:100%;max-width:420px;max-height:92dvh;
  background:#06060c;border-radius:24px 24px 0 0;overflow:hidden;
  box-shadow:0 -12px 60px rgba(0,0,0,.65);
  transform:translateY(100%);transition:transform .42s cubic-bezier(.22,1,.28,1);
  display:flex;flex-direction:column;
}
.pulse-ad-player.open .pulse-ad-player-shell{transform:none}
.pulse-ad-player-top{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px 10px;z-index:2;
  background:linear-gradient(180deg,rgba(6,6,12,.95),transparent);
}
.pulse-ad-player-badge{
  font-size:.58rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  padding:5px 10px;border-radius:100px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.7);
}
.pulse-ad-player-timer{
  font-family:'Inter',sans-serif;font-size:.82rem;font-weight:700;font-variant-numeric:tabular-nums;
  color:#fde047;min-width:28px;text-align:right;
}
.pulse-ad-creative{
  position:relative;aspect-ratio:16/10;overflow:hidden;flex-shrink:0;
  background:#0a0a14;
}
.pulse-ad-creative-inner{
  position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;
  padding:20px 18px 18px;
}
.pulse-ad-creative-bg{
  position:absolute;inset:-8%;background-size:cover;background-position:center;
  animation:adKenBurns 12s ease-in-out infinite alternate;
  filter:saturate(1.2) contrast(1.08);
}
.pulse-ad-creative-bg::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.15) 0%,rgba(0,0,0,.55) 55%,rgba(0,0,0,.88) 100%);
}
@keyframes adKenBurns{
  from{transform:scale(1.05) translate(0,0)}
  to{transform:scale(1.14) translate(-2%,-1.5%)}
}
.pulse-ad-creative-shine{
  position:absolute;inset:0;pointer-events:none;z-index:1;
  background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.12) 50%,transparent 58%);
  animation:adShine 3.5s ease-in-out infinite;
}
@keyframes adShine{
  0%,100%{transform:translateX(-120%)}
  50%{transform:translateX(120%)}
}
.pulse-ad-creative-brand{
  position:relative;z-index:2;display:flex;align-items:center;gap:10px;margin-bottom:10px;
}
.pulse-ad-creative-logo{
  width:42px;height:42px;border-radius:12px;display:grid;place-items:center;
  font-size:1.1rem;font-weight:900;color:#fff;
  box-shadow:0 6px 20px rgba(0,0,0,.35);flex-shrink:0;
}
.pulse-ad-creative-logo-img{
  width:42px;height:42px;border-radius:12px;flex-shrink:0;object-fit:cover;
  box-shadow:0 6px 20px rgba(0,0,0,.35);
}
.pulse-ad-creative-meta{min-width:0;text-align:left}
.pulse-ad-creative-name{
  font-family:'Syne','Inter',sans-serif;font-size:1rem;font-weight:800;color:#fff;
  line-height:1.15;margin-bottom:2px;
}
.pulse-ad-creative-tag{font-size:.62rem;font-weight:600;color:rgba(255,255,255,.55)}
.pulse-ad-creative-title{
  position:relative;z-index:2;font-family:'Syne','Inter',sans-serif;
  font-size:clamp(1.1rem,4.5vw,1.35rem);font-weight:800;line-height:1.2;
  color:#fff;margin:0 0 6px;text-align:left;
}
.pulse-ad-creative-desc{
  position:relative;z-index:2;font-size:.76rem;line-height:1.45;
  color:rgba(255,255,255,.72);margin:0 0 14px;text-align:left;
}
.pulse-ad-creative-cta{
  position:relative;z-index:2;display:inline-flex;align-items:center;gap:8px;
  padding:10px 18px;border-radius:100px;font-size:.72rem;font-weight:800;
  letter-spacing:.04em;text-transform:uppercase;text-decoration:none;
  background:linear-gradient(130deg,#fde047,#f97316);color:#1a0e06;
  box-shadow:0 6px 22px rgba(249,115,22,.4);
  cursor:pointer;transition:transform .15s,box-shadow .15s,filter .15s;
}
a.pulse-ad-creative-cta:hover{
  filter:brightness(1.06);
  box-shadow:0 8px 26px rgba(249,115,22,.5);
}
a.pulse-ad-creative-cta:active{transform:scale(.98)}
.pulse-ad-creative-cta-dot{
  width:6px;height:6px;border-radius:50%;background:#22c55e;
  box-shadow:0 0 8px #22c55e;animation:adLivePulse 1.2s ease-in-out infinite;
}
@keyframes adLivePulse{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.6;transform:scale(.85)}
}
.pulse-ad-creative--ru .pulse-ad-creative-logo{background:linear-gradient(135deg,#f97316,#ea580c)}
.pulse-ad-creative--en .pulse-ad-creative-logo{background:linear-gradient(135deg,#3b82f6,#1d4ed8)}
.pulse-ad-creative--zh .pulse-ad-creative-logo{background:linear-gradient(135deg,#a855f7,#7c3aed)}
.pulse-ad-player-progress{
  height:4px;background:rgba(255,255,255,.08);margin:0 16px;
}
.pulse-ad-player-progress-fill{
  display:block;height:100%;width:0;border-radius:4px;
  background:linear-gradient(90deg,#fbbf24,#f97316,#fde047);
  transition:width .25s linear;
  box-shadow:0 0 12px rgba(251,191,36,.45);
}
.pulse-ad-player-hint{
  margin:12px 16px 8px;font-size:.72rem;font-weight:600;text-align:center;
  color:rgba(255,255,255,.45);
}
.pulse-ad-player-skip{
  margin:0 16px 20px;padding:14px;border:none;border-radius:14px;cursor:not-allowed;
  font-family:inherit;font-size:.8rem;font-weight:700;width:calc(100% - 32px);
  background:rgba(255,255,255,.06);color:rgba(255,255,255,.28);
  transition:background .2s,color .2s,transform .12s;
}
.pulse-ad-player-skip.is-ready{
  cursor:pointer;background:linear-gradient(130deg,#22c55e,#16a34a);color:#fff;
  box-shadow:0 8px 28px rgba(34,197,94,.35);
}
.pulse-ad-player-skip.is-ready:active{transform:scale(.98)}

body.pulse-theme-night .pulse-cd-gate-card{
  background:linear-gradient(165deg,rgba(8,10,24,.98),rgba(12,16,32,.96));
  border-color:rgba(129,140,248,.28);
  box-shadow:0 28px 90px rgba(0,0,0,.75),0 0 48px rgba(99,102,241,.12);
}
body.pulse-theme-night .pulse-cd-gate-icon{
  background:linear-gradient(145deg,rgba(129,140,248,.22),rgba(56,189,248,.1));
  border-color:rgba(165,180,252,.35);color:#a5b4fc;
}
body.pulse-theme-night .pulse-cd-gate-kicker{color:#a5b4fc}
body.pulse-theme-night .pulse-cd-gate-title{color:#eef2ff}
body.pulse-theme-night .pulse-cd-gate-title-text{color:rgba(165,180,252,.7)}
body.pulse-theme-night .pulse-cd-gate-time{color:#eef2ff}
body.pulse-theme-night .pulse-cd-gate-ad-hint{color:rgba(165,180,252,.7)}
body.pulse-theme-night .pulse-cd-gate-used{
  color:rgba(165,180,252,.55);
  background:rgba(99,102,241,.08);border-color:rgba(129,140,248,.15);
}
body.pulse-theme-night .pulse-cd-gate-watch{
  background:linear-gradient(130deg,#a5b4fc,#818cf8,#6366f1);color:#fff;
  box-shadow:0 10px 32px rgba(99,102,241,.4);
}
body.pulse-theme-night .pulse-cd-gate-watch-icon{background:rgba(255,255,255,.15)}
body.pulse-theme-night .pulse-ad-player-shell{background:#04060e}
body.pulse-theme-night .pulse-ad-player-progress-fill{
  background:linear-gradient(90deg,#818cf8,#38bdf8,#a5b4fc);
  box-shadow:0 0 12px rgba(129,140,248,.45);
}
body.pulse-theme-night .pulse-ad-player-timer{color:#c7d2fe}
body.pulse-theme-night .pulse-ad-creative-cta{
  background:linear-gradient(130deg,#c7d2fe,#818cf8);color:#0f172a;
}
