:root{
  --deep:#04316f;
  --blue:#0755b4;
  --blue2:#0870d7;
  --cyan:#29edff;
  --cyan2:#8ffaff;
  --white:#ffffff;
  --soft:#d8f8ff;
  --gold:#ffd65a;
  --gold2:#ffb92d;
  --ink:#061a36;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  -webkit-text-size-adjust:100%;
}

html,body{
  width:100%;
  min-height:100%;
}

body{
  min-height:100vh;
  min-height:100dvh;
  overflow:hidden;
  font-family:"Be Vietnam Pro",system-ui,-apple-system,"Segoe UI",sans-serif;
  background:#063d8b;
}

button{
  font:inherit;
}

.app{
  position:relative;
  width:100%;
  height:100vh;
  height:100dvh;
  overflow:hidden;
}

.screen{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .45s ease, visibility .45s ease;
}

.screen.is-active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

/* ---------------- Loading screen ---------------- */

.loading-screen{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:
    max(22px,env(safe-area-inset-top))
    max(16px,env(safe-area-inset-right))
    max(22px,env(safe-area-inset-bottom))
    max(16px,env(safe-area-inset-left));

  background:
    radial-gradient(circle at 50% 38%,rgba(0,191,255,.30) 0%,rgba(8,116,215,.18) 25%,transparent 48%),
    radial-gradient(circle at 50% 55%,rgba(0,145,255,.14),transparent 45%),
    linear-gradient(180deg,#073579 0%,#0866cb 43%,#0751ad 68%,#063982 100%);
}

.loading-screen::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at center,transparent 50%,rgba(0,26,84,.16) 100%);
  pointer-events:none;
}

.loading-stage{
  position:relative;
  z-index:3;
  width:min(100%,540px);
  text-align:center;
  transform:translateY(-1.5vh);
}

.neon-label{
  width:200px;
  min-height:36px;
  margin:0 auto 8px;

  display:flex;
  align-items:center;
  justify-content:center;

  border:2px solid var(--cyan);
  border-radius:7px;
  background:linear-gradient(180deg,rgba(14,116,223,.86),rgba(9,72,170,.78));

  color:#fff;
  font-size:14px;
  font-weight:900;
  letter-spacing:1.65px;

  box-shadow:
    0 0 4px rgba(42,238,255,.95),
    0 0 14px rgba(42,238,255,.85),
    0 0 27px rgba(42,238,255,.32),
    inset 0 0 12px rgba(62,238,255,.12);
}

.robot{
  width:205px;
  height:auto;
  display:block;
  margin:0 auto 12px;

  filter:
    drop-shadow(0 0 6px rgba(93,250,255,.86))
    drop-shadow(0 0 17px rgba(37,220,255,.52));

  user-select:none;
  -webkit-user-drag:none;
}

.loading-stage h1{
  color:#fff;
  font-size:clamp(32px,5.6vw,46px);
  line-height:1.08;
  font-weight:900;
  letter-spacing:.2px;

  text-shadow:
    0 3px 0 rgba(0,91,185,.48),
    0 0 12px rgba(255,255,255,.18);
}

.loading-subtitle{
  margin-top:9px;
  color:#eefcff;
  font-size:13px;
  font-weight:600;
  text-shadow:0 2px 4px rgba(0,44,103,.45);
}

.loading-box{
  width:min(100%,390px);
  margin:20px auto 0;
}

.progress-rail{
  position:relative;
  width:100%;
  height:17px;
  padding:2px;

  border:2px solid #21eaff;
  border-radius:999px;
  overflow:hidden;

  background:rgba(2,47,133,.75);

  box-shadow:
    0 0 5px rgba(41,237,255,.92),
    0 0 13px rgba(41,237,255,.52),
    inset 0 0 8px rgba(0,21,72,.55);
}

.progress-fill{
  position:relative;
  width:0%;
  height:100%;
  border-radius:999px;
  overflow:hidden;

  background:linear-gradient(90deg,#1adfff 0%,#6cf9ff 100%);

  box-shadow:
    0 0 10px rgba(91,249,255,.95),
    inset 0 1px 1px rgba(255,255,255,.80);

  transition:width .16s ease;
}

.stripes{
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(
      120deg,
      rgba(255,255,255,.82) 0 17px,
      rgba(255,255,255,.16) 17px 34px
    );
  animation:stripeShift .95s linear infinite;
}

@keyframes stripeShift{
  from{transform:translateX(-34px)}
  to{transform:translateX(34px)}
}

.progress-row{
  margin-top:7px;
  display:flex;
  align-items:center;
  justify-content:space-between;

  color:#eafcff;
  font-size:12px;
  font-weight:600;
}

.progress-row strong{
  color:#83fbff;
  font-size:18px;
  line-height:1;
  font-weight:900;
  text-shadow:0 0 8px rgba(104,251,255,.48);
}

.loading-dots{
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.loading-dots i{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#20d5f1;
  opacity:.55;
  box-shadow:0 0 9px rgba(25,217,255,.55);
  animation:dotPulse 1.1s ease-in-out infinite;
}

.loading-dots i:nth-child(2){animation-delay:.16s}
.loading-dots i:nth-child(3){animation-delay:.32s}

@keyframes dotPulse{
  0%,100%{transform:scale(.82);opacity:.36}
  50%{transform:scale(1.18);opacity:1}
}

.ambient-stars .st{
  position:absolute;
  z-index:1;
  border-radius:50%;
  background:#60dfff;
  opacity:.46;
  box-shadow:0 0 7px rgba(71,220,255,.6);
}

.st1{width:4px;height:4px;left:5%;top:49%}
.st2{width:4px;height:4px;left:28%;top:32%}
.st3{width:5px;height:5px;left:42%;top:16%}
.st4{width:4px;height:4px;left:45%;top:33%}
.st5{width:4px;height:4px;right:3%;top:10%}
.st6{width:3px;height:3px;right:14%;top:39%}
.st7{width:4px;height:4px;left:61%;top:57%}
.st8{width:3px;height:3px;right:19%;top:63%}

.floor-grid{
  position:absolute;
  z-index:1;
  left:-18%;
  right:-18%;
  bottom:-9%;
  height:34%;
  opacity:.23;

  transform:perspective(430px) rotateX(62deg);
  transform-origin:bottom center;

  background-image:
    linear-gradient(rgba(25,146,255,.36) 1px,transparent 1px),
    linear-gradient(90deg,rgba(25,146,255,.36) 1px,transparent 1px);
  background-size:42px 32px;

  -webkit-mask-image:linear-gradient(to top,#000 10%,transparent 94%);
  mask-image:linear-gradient(to top,#000 10%,transparent 94%);
}

/* ---------------- Reward screen ---------------- */

.reward-screen{
  display:flex;
  align-items:center;
  justify-content:center;

  padding:
    max(20px,env(safe-area-inset-top))
    max(15px,env(safe-area-inset-right))
    max(20px,env(safe-area-inset-bottom))
    max(15px,env(safe-area-inset-left));

  background:
    radial-gradient(circle at 50% 18%,rgba(17,130,255,.24),transparent 28%),
    radial-gradient(circle at 50% 82%,rgba(255,187,45,.08),transparent 25%),
    linear-gradient(180deg,#041125 0%,#06162d 48%,#030a17 100%);
}

.reward-card{
  position:relative;
  z-index:3;
  width:min(100%,430px);
  padding:30px 24px 26px;
  overflow:hidden;
  text-align:center;

  border:1px solid rgba(111,216,255,.22);
  border-radius:26px;

  background:
    radial-gradient(circle at 50% 0%,rgba(39,154,255,.17),transparent 30%),
    linear-gradient(180deg,rgba(9,32,66,.98),rgba(5,19,39,.98));

  box-shadow:
    0 28px 80px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.reward-card::before{
  content:"";
  position:absolute;
  top:-115px;
  left:50%;
  width:300px;
  height:210px;
  transform:translateX(-50%);
  border-radius:50%;
  background:radial-gradient(circle,rgba(34,204,255,.14),transparent 66%);
  pointer-events:none;
}

.reward-top-line{
  position:absolute;
  top:0;
  left:14%;
  right:14%;
  height:2px;
  background:linear-gradient(90deg,transparent,#2beaff,transparent);
  box-shadow:0 0 10px rgba(41,234,255,.65);
}

.reward-brand{
  position:relative;
  color:#eafdff;
  font-size:14px;
  font-weight:900;
  letter-spacing:2.5px;
}

.ornament{
  margin:12px 0 15px;
  display:flex;
  justify-content:center;
  gap:12px;
  color:#3defff;
  font-size:16px;
  text-shadow:0 0 11px rgba(60,239,255,.7);
}

.ornament span:nth-child(2){
  opacity:.65;
  transform:scale(.8);
}

.eligible-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:34px;
  padding:7px 14px;

  border:1px solid rgba(45,229,255,.34);
  border-radius:999px;

  background:rgba(35,188,255,.08);
  color:#dbfbff;

  font-size:10.5px;
  line-height:1;
  font-weight:800;
  letter-spacing:.6px;
}

.reward-card h2{
  margin-top:17px;

  color:#fff;
  font-size:clamp(32px,8vw,43px);
  line-height:1.02;
  font-weight:900;
  letter-spacing:-1.4px;

  text-shadow:
    0 4px 0 rgba(0,85,160,.24),
    0 0 18px rgba(68,203,255,.12);
}

.bonus-title{
  margin-top:12px;
  color:#43f0ff;
  font-size:12.5px;
  font-weight:900;
  letter-spacing:1px;
}

.reward-divider{
  width:78px;
  height:2px;
  margin:20px auto 18px;
  border-radius:99px;
  background:linear-gradient(90deg,transparent,#39edff,transparent);
}

.offer-label{
  color:#9bb8d3;
  font-size:11px;
  font-weight:800;
  letter-spacing:1.2px;
}

.reward-amount{
  margin-top:7px;

  color:#ffd85b;
  font-size:clamp(44px,12vw,60px);
  line-height:1;
  font-weight:900;
  letter-spacing:-1.7px;

  text-shadow:
    0 0 8px rgba(255,205,65,.34),
    0 0 24px rgba(255,186,45,.15);
}

.reward-note{
  max-width:330px;
  margin:18px auto 0;

  color:#a6b9cc;
  font-size:11.5px;
  line-height:1.6;
  font-weight:600;
}

.reward-cta{
  width:100%;
  min-height:55px;
  margin-top:18px;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  border:0;
  border-radius:15px;

  background:linear-gradient(180deg,#ffdc67,#f6b833);
  color:#251701;

  font-size:14px;
  font-weight:900;
  letter-spacing:.15px;

  cursor:pointer;

  box-shadow:
    0 12px 28px rgba(244,178,45,.22),
    inset 0 1px 0 rgba(255,255,255,.55);

  transition:transform .16s ease,box-shadow .16s ease;
}

.reward-cta:hover{
  transform:translateY(-1px);
  box-shadow:
    0 16px 34px rgba(244,178,45,.28),
    inset 0 1px 0 rgba(255,255,255,.55);
}

.reward-cta:active{
  transform:scale(.99);
}

.terms{
  margin-top:14px;
  color:#6f849b;
  font-size:9.5px;
  line-height:1.55;
}

.reward-bg-stars .spark{
  position:absolute;
  z-index:1;
  color:#3adfff;
  opacity:.30;
  font-style:normal;
  text-shadow:0 0 10px rgba(59,224,255,.6);
}

.p1{left:12%;top:16%}
.p2{right:13%;top:20%;font-size:20px}
.p3{left:8%;bottom:18%;font-size:14px}
.p4{right:8%;bottom:16%;font-size:16px}
.p5{right:20%;top:52%;font-size:13px}

/* Responsive */
@media (max-width:600px){
  .loading-stage{
    width:100%;
    transform:translateY(-1vh);
  }

  .neon-label{
    width:185px;
    min-height:34px;
    font-size:12.5px;
  }

  .robot{
    width:min(47vw,190px);
  }

  .loading-stage h1{
    font-size:clamp(29px,9vw,38px);
  }

  .loading-subtitle{
    font-size:12px;
  }

  .loading-box{
    width:min(100%,390px);
  }

  .reward-card{
    width:100%;
    max-width:410px;
    padding:27px 18px 23px;
    border-radius:22px;
  }
}

@media (max-width:360px){
  .neon-label{
    width:170px;
    font-size:11.5px;
  }

  .robot{
    width:155px;
  }

  .loading-stage h1{
    font-size:27px;
  }

  .reward-card h2{
    font-size:31px;
  }

  .reward-amount{
    font-size:42px;
  }
}

@media (min-width:1000px){
  .loading-stage{
    width:540px;
  }

  .robot{
    width:210px;
  }

  .reward-card{
    width:430px;
  }
}
