:root {
  --bg-top:#fbfdff;
  --bg-bottom:#edf5ff;
  --card:rgba(255,255,255,.94);
  --border:#cbdff9;
  --blue:#245fca;
  --blue-dark:#1555c7;
  --blue-light:#3d89f1;
  --muted:#6682af;
  --muted-soft:#8299bd;
  --gold:#8b6900;
  --gold-border:#dfc469;
  --gold-bg:#fff9e9;
  --shadow:0 18px 48px rgba(36,99,190,.12);
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:14px;
  background:
    radial-gradient(circle at 50% 16%,rgba(85,151,245,.08),transparent 34%),
    linear-gradient(180deg,var(--bg-top),var(--bg-bottom));
  color:var(--blue);
  font-family:"Be Vietnam Pro","Segoe UI",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.shell{width:min(400px,100%)}

.card{
  position:relative;
  width:100%;
  padding:28px 18px 20px;
  border:1px solid var(--border);
  border-radius:20px;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(249,252,255,.96));
  box-shadow:var(--shadow);
  text-align:center;
}

.hat{
  position:absolute;
  top:14px;
  width:34px;
  z-index:2;
  line-height:0;
  pointer-events:none;
  user-select:none;
}
.hat-left{left:12px}
.hat-right{right:12px}
.hat img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.10));
}
.hat-right img{transform:scaleX(-1)}



.title{
  margin:0 auto;
  max-width:318px;
  padding:0 2px;
  color:var(--blue);
  font-family:"Montserrat Alternates","Be Vietnam Pro",Arial,sans-serif;
  font-size:clamp(20px,5.2vw,23px);
  font-weight:900;
  line-height:1.13;
  letter-spacing:-.42px;
  text-transform:uppercase;
  text-shadow:0 1px 0 rgba(255,255,255,.95);
}
.title span{display:block}
.title span+span{margin-top:2px}

.age{
  display:flex;
  align-items:center;
  justify-content:center;
  width:fit-content;
  max-width:100%;
  min-height:31px;
  margin:14px auto 12px;
  padding:6px 15px 7px;
  border:1px solid var(--gold-border);
  border-radius:999px;
  background:linear-gradient(180deg,#fffdf5,var(--gold-bg));
  color:var(--gold);
  font-size:12px;
  font-weight:700;
  line-height:1.25;
  text-align:center;
  box-shadow:0 2px 6px rgba(139,105,0,.04);
}

.copy{
  margin:0 auto 18px;
  max-width:352px;
  color:var(--muted);
  font-size:13.5px;
  font-weight:500;
  line-height:1.67;
  letter-spacing:-.05px;
  text-align:center;
}
.copy p{margin:0 0 7px}
.copy p:last-child{margin-bottom:0}

.cta{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  overflow:hidden;
  isolation:isolate;
  width:100%;
  min-height:56px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:999px;
  background:linear-gradient(180deg,#5ca6fb 0%, #377ee7 58%, #255fca 100%);
  color:#fff;
  box-shadow:
    0 14px 30px rgba(36,95,202,.18),
    0 0 0 0 rgba(92,166,251,.10),
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -3px 0 rgba(0,0,0,.05);
  font-family:"Montserrat Alternates","Be Vietnam Pro",Arial,sans-serif;
  font-size:16px;
  font-weight:900;
  line-height:1;
  letter-spacing:.22px;
  text-transform:uppercase;
  cursor:pointer;
  touch-action:manipulation;
  transform-origin:center;
  transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;
  animation:ctaFloatLuxury 3.2s ease-in-out infinite, ctaAuraLuxury 3.2s ease-in-out infinite;
}
.cta::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:inherit;
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.02) 46%, rgba(255,255,255,0));
  z-index:0;
  pointer-events:none;
}
.cta::after{
  content:"";
  position:absolute;
  top:0;
  left:-38%;
  width:22%;
  height:100%;
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.34),rgba(255,255,255,0));
  transform:skewX(-20deg);
  animation:ctaSweepLuxury 3.6s ease-in-out infinite;
  z-index:0;
  pointer-events:none;
}
.cta > *{position:relative;z-index:1}
.cta-label{text-shadow:0 1px 0 rgba(0,0,0,.08)}
.cta-arrow{
  display:inline-block;
  font-size:17px;
  line-height:1;
  transform:translateX(0);
  animation:ctaArrowLuxury 1.45s ease-in-out infinite;
}
.cta:hover{filter:brightness(1.03)}
.cta:active{transform:translateY(1px) scale(.994);box-shadow:0 10px 20px rgba(36,95,202,.16)}
.cta:disabled{opacity:.86;cursor:default;animation:none}
.cta:disabled::after{display:none}
.cta:disabled .cta-arrow{animation:none}

.note{
  margin:11px 0 0;
  color:var(--muted-soft);
  font-size:10.8px;
  font-weight:500;
  line-height:1.45;
}

.copyright{
  margin:17px 0 0;
  color:#718bb4;
  font-size:11.8px;
  font-weight:600;
  line-height:1.4;
}

.loading-card{padding-top:28px}
.loader-icon{
  display:grid;
  place-items:center;
  width:60px;
  height:60px;
  margin:0 auto 14px;
  border:1px solid #d7e7fb;
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#edf6ff);
  color:var(--blue);
  box-shadow:0 8px 22px rgba(33,100,216,.08);
  font-size:27px;
  font-weight:800;
}
.loading-title{
  margin:0 0 8px;
  color:var(--blue);
  font-family:"Montserrat Alternates","Be Vietnam Pro",Arial,sans-serif;
  font-size:22px;
  font-weight:900;
  line-height:1.2;
  letter-spacing:-.35px;
  text-transform:uppercase;
}
.loading-copy{
  margin:0 auto 18px;
  max-width:300px;
  color:var(--muted);
  font-size:13.5px;
  font-weight:500;
  line-height:1.58;
}
.circle-progress-wrap{
  display:flex;
  justify-content:center;
  margin:18px 0 8px;
}
.circle-progress{
  --progress:0deg;
  position:relative;
  display:grid;
  place-items:center;
  width:142px;
  height:142px;
  border-radius:50%;
  background:conic-gradient(
    #2164d8 0deg,
    #3b8bf0 var(--progress),
    #e2edf9 var(--progress),
    #e2edf9 360deg
  );
  box-shadow:0 12px 30px rgba(33,100,216,.14);
  transform:rotate(-90deg);
  will-change:background;
}
.circle-progress::after{
  content:"";
  position:absolute;
  inset:11px;
  border-radius:50%;
  background:linear-gradient(180deg,#fff,#f4f9ff);
  box-shadow:inset 0 0 0 1px rgba(33,100,216,.08);
}
.circle-progress-inner{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  transform:rotate(90deg);
}
.circle-progress-inner strong{
  color:var(--blue);
  font-family:"Montserrat Alternates","Be Vietnam Pro",Arial,sans-serif;
  font-size:27px;
  font-weight:900;
  line-height:1;
  letter-spacing:-.5px;
}
.circle-progress-inner span{
  margin-top:7px;
  color:var(--muted);
  font-size:11px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.4px;
}
.status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  margin-top:14px;
  padding:9px 15px;
  border:1px solid #d3e4f9;
  border-radius:999px;
  background:#f6faff;
  color:var(--blue);
  font-size:12.5px;
  font-weight:700;
}


@keyframes ctaFloatLuxury{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-1px) scale(1.012)}
}

@keyframes ctaAuraLuxury{
  0%,100%{
    box-shadow:
      0 14px 30px rgba(36,95,202,.18),
      0 0 0 0 rgba(92,166,251,.06),
      inset 0 1px 0 rgba(255,255,255,.38),
      inset 0 -3px 0 rgba(0,0,0,.05);
  }
  50%{
    box-shadow:
      0 18px 36px rgba(36,95,202,.22),
      0 0 0 10px rgba(92,166,251,.04),
      inset 0 1px 0 rgba(255,255,255,.42),
      inset 0 -3px 0 rgba(0,0,0,.04);
  }
}

@keyframes ctaSweepLuxury{
  0%{left:-38%;opacity:0}
  12%{opacity:1}
  42%{left:112%;opacity:1}
  100%{left:112%;opacity:0}
}

@keyframes ctaArrowLuxury{
  0%,100%{transform:translateX(0);opacity:.95}
  50%{transform:translateX(3px);opacity:1}
}

@media(max-width:360px){
  .sound-toggle{right:10px;bottom:10px;width:32px;height:32px;font-size:15px}
  .hat{top:12px;width:30px}
  .hat-left{left:10px}
  .hat-right{right:10px}

  body{padding:8px}
  .card{padding-left:15px;padding-right:15px}
  .party{left:14px;top:24px}
  

.title{font-size:18px;padding:0 16px;letter-spacing:-.38px}
  .copy{font-size:13px}
  .cta{font-size:15px}
}

@media(prefers-reduced-motion:reduce){
  .cta{transition:none;animation:none}
  .cta::before,.cta::after{display:none}
  .cta-arrow{animation:none}
}
