@font-face {
  font-family: Exo2;
  src: url(fonts/exo2.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Michroma;
  src: url(fonts/michroma.woff2) format("woff2");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: #020308;
  color: #e8f4ff;
  font:
    15px/1.45 Exo2,
    system-ui,
    sans-serif;
}
body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  overflow-x: hidden;
}
.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      1200px 700px at 50% -10%,
      rgba(60, 140, 255, .22),
      transparent 60%),
    radial-gradient(
      800px 600px at 90% 110%,
      rgba(0, 255, 190, .12),
      transparent 60%),
    radial-gradient(
      700px 500px at 0% 80%,
      rgba(255, 80, 200, .10),
      transparent 60%);
}
.sky i {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
  animation: drift 18s ease-in-out infinite alternate;
}
.sky i:nth-child(1) {
  background: #2a6cff;
  left: -120px;
  top: 10%;
}
.sky i:nth-child(2) {
  background: #00e0b0;
  right: -140px;
  top: 40%;
  animation-delay: -6s;
}
.sky i:nth-child(3) {
  background: #b04dff;
  left: 30%;
  bottom: -200px;
  animation-delay: -12s;
}
@keyframes drift {
  to {
    transform: translate(40px, -30px) scale(1.08);
  }
}
.card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 20px;
  border-radius: 26px;
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, .10),
      rgba(255, 255, 255, .03));
  border: 1px solid rgba(160, 220, 255, .28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .4) inset,
    0 30px 80px rgba(0, 0, 0, .6),
    0 0 60px rgba(80, 170, 255, .18);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
header {
  text-align: center;
  margin-bottom: 18px;
}
.mark {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 0 14px rgba(110, 200, 255, .7));
}
h1 {
  margin: 8px 0 0;
  font:
    400 26px/1 Michroma,
    Exo2,
    sans-serif;
  letter-spacing: .32em;
  text-indent: .32em;
  color: #f2fbff;
  text-shadow: 0 0 12px rgba(120, 210, 255, .8), 0 0 30px rgba(60, 140, 255, .5);
}
.sub {
  margin: 6px 0 0;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(170, 220, 255, .65);
}
.lead {
  margin: 0 0 14px;
  text-align: center;
  color: rgba(232, 244, 255, .9);
}
.kick {
  margin: 0 0 6px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #7fe7ff;
}
.fine {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(200, 225, 255, .6);
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(160, 220, 255, .4);
  background: rgba(10, 20, 40, .55);
  color: #eaf6ff;
  font: 600 15.5px Exo2, sans-serif;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 0 18px rgba(80, 170, 255, .18);
  transition: transform .15s, box-shadow .2s;
}
.btn:active {
  transform: scale(.98);
}
.btn svg {
  width: 20px;
  height: 20px;
}
.btn.go {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .16),
      rgba(255, 255, 255, .05));
}
.btn.ok {
  margin-top: 12px;
  border-color: rgba(90, 255, 200, .6);
  background:
    linear-gradient(
      180deg,
      rgba(40, 220, 170, .32),
      rgba(20, 120, 110, .25));
  box-shadow: 0 0 22px rgba(60, 255, 200, .28), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.btn[disabled] {
  opacity: .45;
  cursor: default;
}
.qr {
  width: 200px;
  height: 200px;
  margin: 4px auto 10px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 30px rgba(120, 210, 255, .45);
}
.qr svg {
  display: block;
  width: 100%;
  height: 100%;
}
.key {
  margin: 0 0 12px;
  text-align: center;
  font-size: 13px;
  color: rgba(200, 225, 255, .75);
}
.key summary {
  cursor: pointer;
  color: #8fdcff;
}
.key code {
  display: block;
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .35);
  font: 13px/1.4 ui-monospace, monospace;
  letter-spacing: .08em;
  word-break: break-all;
  color: #bff3ff;
  user-select: all;
}
.codes {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 211, 107, .3);
}
.codes p {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: rgba(255, 236, 190, .9);
}
.codes ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
  margin: 0;
  padding: 0 0 0 22px;
  font: 13px/1.5 ui-monospace, monospace;
  color: #ffe9b0;
}
.lnk {
  display: block;
  margin: 10px auto 0;
  padding: 6px;
  border: 0;
  background: none;
  color: #8fdcff;
  font: 600 13.5px Exo2, sans-serif;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.chk {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  font-size: 13.5px;
  color: rgba(232, 244, 255, .85);
  cursor: pointer;
}
.chk input {
  width: 18px;
  height: 18px;
  accent-color: #3fe6b8;
}
form.code {
  margin-top: 14px;
}
form.code > label:first-child,
.cl {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: rgba(200, 225, 255, .8);
}
form.code input:not([type=checkbox]) {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(160, 220, 255, .4);
  background: rgba(0, 8, 20, .6);
  color: #f2fbff;
  font: 600 24px/1 ui-monospace, monospace;
  letter-spacing: .35em;
  text-align: center;
  outline: none;
  box-shadow: 0 0 0 0 rgba(80, 200, 255, 0);
}
form.code input:focus {
  border-color: #7fe7ff;
  box-shadow: 0 0 0 3px rgba(80, 200, 255, .22), 0 0 20px rgba(80, 200, 255, .25);
}
form.code[data-mode=backup] input:not([type=checkbox]) {
  letter-spacing: .12em;
  font-size: 18px;
}
.err {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 80, 110, .14);
  border: 1px solid rgba(255, 110, 140, .4);
  color: #ffd0da;
  font-size: 13.5px;
  text-align: center;
}
footer {
  margin-top: 8px;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .sky i {
    animation: none;
  }
}
