
/* VYRSIGN COSMIC SIGNING ENGINE 8.98 */

.v2-drawer:has(.sign-cosmos-screen) {
  background:#050204!important;
  overflow-x:hidden;
}

.sign-studio.sign-cosmos-mode {
  min-height:100dvh;
  width:100%;
  max-width:100%;
}

.sign-cosmos-mode .sign-progress {
  display:none!important;
}

.sign-panel.sign-cosmos-screen {
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
  max-width:100%;
  min-height:calc(100dvh - 110px);
  box-sizing:border-box;
  padding:30px 18px 38px;
  border:1px solid #63253b;
  border-radius:24px;
  background:
    radial-gradient(ellipse at 50% 30%,#811b3027,transparent 66%),
    radial-gradient(ellipse at 50% 90%,#4e102221,transparent 62%),
    #080408;
  box-shadow:
    inset 0 0 90px #6c17301c,
    0 0 45px #4c0b2115;
}

.sign-cosmos-screen h4 {
  text-align:center;
  font-size:clamp(16px,5vw,23px);
  letter-spacing:.11em;
  color:#fff0f2;
  text-shadow:0 0 25px #d4255366;
}

.sign-cosmos-screen>.sign-panel-description {
  margin:5px 0 3px;
  text-align:center;
  color:#a86b7c;
  font-size:10px;
  letter-spacing:.27em;
}

.vyr-cosmos-scene {
  position:relative;
  width:100%;
  height:clamp(260px,44vh,370px);
  overflow:hidden;
  perspective:780px;
  transform-style:preserve-3d;
  isolation:isolate;
}

.vyr-cosmos-atmosphere {
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse at 50% 50%,#fa315a28 0%,transparent 42%),
    radial-gradient(ellipse at 40% 70%,#a90e3022,transparent 48%),
    radial-gradient(ellipse at 62% 28%,#ff6e8320,transparent 43%);
  filter:blur(12px);
  animation:vyr-breathe 4s ease-in-out infinite alternate;
}

.vyr-cosmos-core {
  position:absolute;
  width:115px;
  height:115px;
  top:50%;
  left:50%;
  margin:-57.5px;
  border-radius:50%;
  background:
    radial-gradient(circle at 38% 30%,#ffc2b3 0%,#ff5274 9%,
      #b50930 27%,#3e0415 59%,#070106 75%);
  border:1px solid #ff536c8a;
  box-shadow:
    0 0 24px #ff46687a,
    0 0 75px #d8173b60,
    0 0 125px #940e2d35,
    inset -15px -15px 25px #080207,
    inset 8px 8px 25px #ffa0a066;
  animation:vyr-corepulse 3s ease-in-out infinite alternate;
}

.vyr-cosmos-inner {
  position:absolute;
  inset:-17px;
  border-radius:50%;
  border:1px solid #ff71844a;
  box-shadow:0 0 23px #f33d5966, inset 0 0 20px #f33d5950;
  animation:vyr-corepulse 2.4s ease-in-out infinite alternate-reverse;
}

.vyr-cosmos-ring {
  position:absolute;
  width:212px;
  height:212px;
  left:50%;
  top:50%;
  margin:-106px;
  border:2px solid transparent;
  border-top-color:#ff577ba6;
  border-left-color:#a91845a3;
  border-bottom-color:#f28b9866;
  border-radius:50%;
  box-shadow:
    0 0 17px #fa275b3d,
    inset 0 0 20px #e418482c;
  transform-style:preserve-3d;
  animation:vyr-orbit 8s linear infinite;
  animation-delay:var(--delay);
}

.vyr-cosmos-star {
  position:absolute;
  width:2px;
  height:2px;
  border-radius:50%;
  background:#ffb6bc;
  box-shadow:0 0 9px 2px #e93e59ac;
  animation:vyr-twinkle 2.5s infinite alternate;
}

.vyr-cosmos-progress {
  width:100%;
  max-width:580px;
  padding:20px 16px 22px;
  border:1px solid #8b3452;
  border-radius:19px;
  background:
    radial-gradient(ellipse at 55% -20%,#bb33503d,transparent 67%),
    linear-gradient(155deg,#26101d,#0c060d 72%);
  box-shadow:
    inset 0 1px 1px #ffb8c032,
    0 6px 0 #16040d,
    0 18px 35px #0009,
    0 0 40px #b3123218;
}

.vyr-cosmos-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:17px;
}

.vyr-cosmos-phase {
  color:#d18ca0;
  font-size:11px;
  font-weight:800;
  letter-spacing:.17em;
}

.vyr-cosmos-percent {
  color:#ffd5dc;
  font-size:clamp(23px,6vw,32px);
  font-weight:900;
  font-variant-numeric:tabular-nums;
  text-shadow:0 0 24px #fa386d9c;
}

.vyr-cosmos-track {
  position:relative;
  height:27px;
  overflow:hidden;
  border:1px solid #aa4261;
  border-radius:999px;
  background:linear-gradient(#070307,#250b18);
  box-shadow:
    inset 0 4px 10px #000e,
    0 0 20px #9a113022,
    0 2px 0 #ff87902b;
}

.vyr-cosmos-fill {
  position:absolute;
  top:2px;
  bottom:2px;
  left:2px;
  width:0;
  max-width:calc(100% - 4px);
  border-radius:999px;
  background:
    repeating-linear-gradient(115deg,
      #ff3466 0px,#ed174b 12px,
      #ff8595 22px,#ffced1 25px,#b50935 38px);
  background-size:240px 100%;
  box-shadow:
    inset 0 2px 3px #fff8,
    inset 0 -5px 10px #5c001d,
    0 0 15px #ff3a71,
    0 0 36px #dd164d8c;
  transition:width .22s ease-out;
  animation:vyr-plasma 1.5s linear infinite;
}

.vyr-cosmos-fill::after {
  content:'';
  position:absolute;
  top:-5px;
  right:0;
  bottom:-5px;
  width:12px;
  border-radius:50%;
  background:#ffe1e1;
  box-shadow:0 0 14px 5px #ff587e,0 0 35px #fb285d;
}

.vyr-cosmos-message {
  margin-top:20px;
  color:#ffe6eb;
  font-weight:750;
  font-size:14px;
  text-align:center;
}

.vyr-cosmos-detail {
  margin-top:9px;
  color:#ae8391;
  font-size:12px;
  line-height:1.5;
  text-align:center;
  overflow-wrap:anywhere;
}

.vyr-cosmos-progress.is-signing .vyr-cosmos-fill {
  animation:vyr-plasma .6s linear infinite,
    vyr-corepulse .8s ease-in-out infinite alternate;
}

.vyr-cosmos-progress.is-complete {
  border-color:#f1849a;
  box-shadow:0 0 36px #fb4d7566;
}

.vyr-cosmos-progress.is-error {
  border-color:#d92e4d;
}

.vyr-cosmos-download {
  display:block;
  box-sizing:border-box;
  width:100%;
  max-width:580px;
  margin-top:32px;
  padding:20px;
  border:1px solid #e85c80;
  border-radius:16px;
  color:#fff;
  font-weight:800;
  text-align:center;
  text-decoration:none;
  background:linear-gradient(140deg,#ac244e,#390e22);
  box-shadow:0 6px 0 #200713,0 0 27px #dc2b5833;
}

.vyr-cosmos-download.expired {
  opacity:.5;
  pointer-events:none;
}

.vyr-cosmos-expiry {
  margin-top:18px;
  color:#ae8592;
  font-size:12px;
  text-align:center;
}

.sign-cosmos-screen .sign-reset {
  width:100%;
  max-width:580px;
  margin-top:34px;
}

@keyframes vyr-orbit {
  from {
    transform:rotateX(var(--rx)) rotateY(var(--ry))
      rotateZ(0deg) scale(var(--scale));
  }
  to {
    transform:rotateX(var(--rx)) rotateY(var(--ry))
      rotateZ(360deg) scale(var(--scale));
  }
}

@keyframes vyr-corepulse {
  from { filter:brightness(.8);transform:scale(.96); }
  to { filter:brightness(1.3);transform:scale(1.06); }
}

@keyframes vyr-breathe {
  from { opacity:.55;transform:scale(.9) rotate(0deg); }
  to { opacity:1;transform:scale(1.1) rotate(12deg); }
}

@keyframes vyr-twinkle {
  from { opacity:.15;transform:scale(.6); }
  to { opacity:1;transform:scale(1.5); }
}

@keyframes vyr-plasma {
  from { background-position:0 0; }
  to { background-position:240px 0; }
}

@media(max-width:600px) {
  .sign-panel.sign-cosmos-screen { padding:25px 15px 30px; }
  .vyr-cosmos-scene { height:290px; }
  .vyr-cosmos-progress { padding:18px 13px 20px; }
}

@media(prefers-reduced-motion:reduce) {
  .vyr-cosmos-ring,.vyr-cosmos-core,.vyr-cosmos-inner,
  .vyr-cosmos-star,.vyr-cosmos-fill,.vyr-cosmos-atmosphere {
    animation:none;
  }
}


/* VYRSIGN COSMIC RESULT EXPERIENCE 8.99 */

.v2-drawer:has(.sign-cosmos-screen) .vyr-hide-when-signing {
  display:none!important;
}

.sign-cosmos-screen .vyr-cosmos-scene,
.sign-cosmos-screen .vyr-cosmos-progress {
  will-change:opacity,transform,filter;
}

.vyr-vanish {
  animation:vyr-dissolve .65s cubic-bezier(.2,.7,.2,1) forwards!important;
}

@keyframes vyr-dissolve {
  from {
    opacity:1;
    filter:blur(0);
    transform:scale(1);
  }
  to {
    opacity:0;
    filter:blur(22px);
    transform:scale(1.13);
  }
}

/* Deep red plasma reactor */

.vyr-cosmos-track {
  height:28px;
  border-color:#79304a;
  background:
    linear-gradient(180deg,#080308,#210812 60%,#090308);
  box-shadow:
    inset 0 5px 11px #000e,
    inset 0 -2px 5px #550c25,
    0 0 15px #7e102622;
}

.vyr-cosmos-fill {
  background:
    radial-gradient(ellipse at 74% 45%,
      #ec45636b,transparent 60%),
    linear-gradient(180deg,
      #17050d 0%,
      #7b1431 18%,
      #b52143 43%,
      #700f2c 70%,
      #250510 100%),
    linear-gradient(100deg,
      #280613,#6c102a,#a52145,#4b0b21);
  background-size:180% 100%,100% 100%,260% 100%;
  border:1px solid #c83c5b66;
  box-shadow:
    inset 0 3px 4px #ffd5dc33,
    inset 0 -7px 12px #16020b,
    0 0 12px #a41c3b77,
    0 0 28px #97152d44;
  animation:vyr-deep-plasma 12s ease-in-out infinite alternate;
}

.vyr-cosmos-fill::before {
  content:'';
  position:absolute;
  inset:3px 5px;
  border-radius:inherit;
  background:
    radial-gradient(ellipse at 45% 30%,
      #ffd0d022,transparent 48%);
  opacity:.7;
}

.vyr-cosmos-fill::after {
  top:1px;
  bottom:1px;
  width:8px;
  background:linear-gradient(90deg,#bb284a,#f27187);
  box-shadow:0 0 9px #c22a50,0 0 16px #9f193b55;
}

.vyr-cosmos-progress.is-signing .vyr-cosmos-fill {
  animation:vyr-deep-plasma 9s ease-in-out infinite alternate;
}

.vyr-cosmos-progress.is-error .vyr-cosmos-fill,
.vyr-cosmos-progress.is-complete .vyr-cosmos-fill {
  animation:none!important;
}

@keyframes vyr-deep-plasma {
  from { background-position:0% 50%,0 0,0% 50%; }
  to { background-position:90% 50%,0 0,100% 50%; }
}

/* Separate final screen */

.sign-panel.sign-cosmos-screen.sign-result-screen {
  min-height:calc(100dvh - 110px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:22px;
  padding:40px 20px;
  background:
    radial-gradient(ellipse at 50% 35%,#9c183126,transparent 58%),
    radial-gradient(ellipse at 50% 80%,#4b0d2020,transparent 70%),
    #080408;
}

.vyr-result {
  width:100%;
  max-width:530px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  animation:vyr-result-enter .75s cubic-bezier(.17,.8,.25,1) both;
}

@keyframes vyr-result-enter {
  from {
    opacity:0;
    transform:translateY(32px) scale(.94);
    filter:blur(12px);
  }
  to {
    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0);
  }
}

.vyr-result-emblem {
  width:130px;
  height:130px;
  display:grid;
  place-items:center;
  margin:0 auto 33px;
  border:2px solid #b8405b;
  border-radius:50%;
  background:
    radial-gradient(circle at 33% 25%,#c12a4a,#41091d 52%,#0d0309 83%);
  box-shadow:
    inset 0 5px 17px #ffb9c333,
    inset 0 -12px 25px #080206,
    0 0 35px #c8254a55,
    0 0 95px #7d102735;
  color:#fff0f2;
  font-size:57px;
  font-weight:800;
}

.vyr-result.is-error .vyr-result-emblem {
  border-color:#9d344e;
  color:#ff9eb3;
}

.vyr-result-kicker {
  color:#d97893;
  font-size:11px;
  font-weight:800;
  letter-spacing:.25em;
}

.vyr-result-title {
  margin:18px 0 10px;
  color:#fff2f5;
  font-size:clamp(25px,7vw,38px);
  line-height:1.18;
  letter-spacing:-.04em;
}

.vyr-result-description {
  max-width:440px;
  color:#c8a9b5;
  font-size:14px;
  line-height:1.75;
  margin:12px 0 22px;
}

.vyr-result-technical {
  width:100%;
  box-sizing:border-box;
  padding:15px;
  margin:0 0 25px;
  border:1px solid #633347;
  border-radius:14px;
  background:#220d19;
  color:#d69daf;
  font-size:12px;
  overflow-wrap:anywhere;
}

.vyr-result-action {
  display:block;
  box-sizing:border-box;
  width:100%;
  padding:20px 16px;
  border:1px solid #e26181;
  border-radius:17px;
  background:linear-gradient(145deg,#a9274c,#390e23);
  box-shadow:
    inset 0 1px 2px #ffd8e044,
    0 5px 0 #260a17,
    0 15px 32px #0008,
    0 0 35px #d62d5730;
  color:#fff;
  font:inherit;
  font-size:15px;
  font-weight:800;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
}

.vyr-result-action.expired {
  opacity:.45;
  pointer-events:none;
}

.vyr-result-expiry {
  margin-top:24px;
  color:#e9a5b6;
  font-size:14px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}

.sign-result-screen .sign-reset {
  width:100%;
  max-width:530px;
  margin-top:16px;
}

@media(prefers-reduced-motion:reduce) {
  .vyr-vanish,.vyr-result {
    animation:none!important;
  }
}



/* 9.00 / 3D cosmos polish */

.sign-cosmos-screen .vyr-cosmos-scene {
  position: relative;
  padding-top: 34px !important;
  margin-top: 12px;
  overflow: visible !important;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.sign-cosmos-screen .vyr-cosmos-scene::before {
  content:'';
  position:absolute;
  inset:22px 22px 8px;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255,65,108,.18), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(255,140,170,.08), transparent 58%);
  filter: blur(16px);
  pointer-events:none;
}

.sign-cosmos-screen .vyr-cosmos-scene [class*="orbit"],
.sign-cosmos-screen .vyr-cosmos-scene [class*="ring"],
.sign-cosmos-screen .vyr-cosmos-scene [class*="line"] {
  transform-style: preserve-3d;
}

.sign-cosmos-screen .vyr-cosmos-scene [class*="core"],
.sign-cosmos-screen .vyr-cosmos-scene [class*="planet"],
.sign-cosmos-screen .vyr-cosmos-scene [class*="sphere"] {
  transform: translateZ(26px) scale(1.03);
  box-shadow:
    inset -24px -26px 40px rgba(0,0,0,.55),
    inset 10px 10px 24px rgba(255,175,190,.18),
    0 22px 40px rgba(0,0,0,.38),
    0 0 42px rgba(255,46,96,.22);
}

.sign-cosmos-screen .vyr-cosmos-progress {
  backdrop-filter: blur(8px);
}

.sign-cosmos-screen .vyr-cosmos-progress::before {
  content:'';
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  pointer-events:none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), transparent 30%, transparent 70%, rgba(255,80,120,.10));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding:1px;
}

.vyr-result {
  position:relative;
}

.vyr-result::before {
  content:'';
  position:absolute;
  top:-18px;
  width:220px;
  height:220px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(255,62,106,.14), transparent 62%);
  filter: blur(18px);
  z-index:0;
}

.vyr-result > * {
  position:relative;
  z-index:1;
}

.vyr-result-title {
  margin-bottom: 14px;
}

.vyr-result-description {
  max-width: 470px;
}

.vyr-result-actions {
  width:100%;
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:8px;
}

.vyr-result-secondary {
  display:block;
  width:100%;
  box-sizing:border-box;
  padding:16px 14px;
  border:1px solid rgba(220,116,145,.35);
  border-radius:15px;
  background: rgba(33,14,24,.72);
  color:#f0b6c4;
  text-align:center;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.vyr-result-secondary.expired {
  opacity:.45;
  pointer-events:none;
}

.vyr-result-note {
  color:#b9929e;
  font-size:12px;
  line-height:1.6;
  text-align:center;
  padding:2px 10px 0;
}

.vyr-result-expiry {
  margin-top: 18px;
}
