/* =========================================================
   SUPPORT POPUP · LAW MOCK TESTS
   ========================================================= */

.support-popup-overlay{
  position:fixed;
  inset:0;
  z-index:99999;

  display:grid;
  place-items:center;

  padding:24px;

  background:rgba(2,6,13,.74);

  backdrop-filter:blur(13px);
  -webkit-backdrop-filter:blur(13px);

  opacity:0;
  visibility:hidden;

  transition:
    opacity .35s ease,
    visibility .35s ease;
}

.support-popup-overlay.is-open{
  opacity:1;
  visibility:visible;
}

body.support-popup-open{
  overflow:hidden;
}


/* ---------------------------------------------------------
   MODAL
   --------------------------------------------------------- */

.support-popup{
  --popup-gold:#e6bf78;
  --popup-gold-soft:#f1dfba;
  --popup-violet:#ae91ff;

  position:relative;

  width:min(780px,100%);
  max-height:min(680px,calc(100vh - 48px));

  display:grid;
  grid-template-columns:minmax(230px,.86fr) minmax(0,1.14fr);

  overflow:hidden;

  border:
    1px solid rgba(230,191,120,.24);

  border-radius:24px;

  background:
    linear-gradient(
      145deg,
      rgba(12,23,39,.985),
      rgba(7,14,25,.995)
    );

  box-shadow:
    0 40px 110px rgba(0,0,0,.65),
    0 0 60px rgba(174,145,255,.055),
    inset 0 1px 0 rgba(255,255,255,.035);

  transform:
    translateY(12px)
    scale(.975);

  transition:
    transform .38s
    cubic-bezier(.2,.8,.2,1);
}

.support-popup-overlay.is-open .support-popup{
  transform:
    translateY(0)
    scale(1);
}


/* fine inner frame */

.support-popup::before{
  content:"";

  position:absolute;
  inset:7px;

  z-index:6;

  border:
    1px solid rgba(230,191,120,.10);

  border-radius:18px;

  pointer-events:none;
}


/* ---------------------------------------------------------
   STARS
   --------------------------------------------------------- */

.support-popup-stars{
  position:absolute;
  inset:0;

  z-index:0;

  pointer-events:none;

  opacity:.26;

  background-image:
    radial-gradient(
      1px 1px at 18px 28px,
      rgba(255,255,255,.9),
      transparent
    ),
    radial-gradient(
      1px 1px at 74px 61px,
      rgba(230,191,120,.95),
      transparent
    ),
    radial-gradient(
      1.5px 1.5px at 128px 24px,
      rgba(174,145,255,.7),
      transparent
    );

  background-size:
    145px 145px;
}


/* ---------------------------------------------------------
   CLOSE
   --------------------------------------------------------- */

.support-popup-close{
  position:absolute;

  top:17px;
  right:17px;

  z-index:20;

  width:38px;
  height:38px;

  display:grid;
  place-items:center;

  padding:0;

  border:
    1px solid rgba(230,191,120,.15);

  border-radius:50%;

  color:rgba(230,191,120,.65);

  background:
    rgba(8,17,31,.55);

  cursor:pointer;

  transition:
    color .2s ease,
    border-color .2s ease,
    background .2s ease,
    transform .25s ease;
}

.support-popup-close:hover{
  color:#f4dfb8;

  border-color:
    rgba(230,191,120,.36);

  background:
    rgba(230,191,120,.07);

  transform:rotate(90deg);
}

.support-popup-close svg{
  width:17px;
  height:17px;
}


/* ---------------------------------------------------------
   ART
   --------------------------------------------------------- */

.support-popup-art{
  position:relative;
  z-index:1;

  min-height:410px;

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

  padding:34px 24px;

  overflow:hidden;

  border-right:
    1px solid rgba(230,191,120,.11);

  background:
    radial-gradient(
      circle at 48% 42%,
      rgba(174,145,255,.10),
      transparent 37%
    ),
    radial-gradient(
      circle at 46% 57%,
      rgba(230,191,120,.055),
      transparent 43%
    ),
    linear-gradient(
      155deg,
      rgba(13,24,41,.85),
      rgba(5,10,18,.96)
    );
}

.support-cat{
  position:relative;

  width:min(210px,100%);

  filter:
    drop-shadow(
      0 20px 30px
      rgba(0,0,0,.38)
    );
}

.support-cat svg{
  display:block;
  width:100%;
  height:auto;
}


/* ---------------------------------------------------------
   CAT ANIMATION
   --------------------------------------------------------- */

@keyframes support-breathe{
  0%,100%{
    transform:scale(1);
  }

  50%{
    transform:
      translateY(-2px)
      scale(1.018);
  }
}

.support-cat-body{
  transform-box:view-box;
  transform-origin:100px 160px;

  animation:
    support-breathe
    3.3s ease-in-out
    infinite 5.8s;
}


@keyframes support-head-sleep{

  0%{
    transform:
      translateY(-15px)
      rotate(-5deg);
  }

  42%{
    transform:
      translateY(-13px)
      rotate(-4deg);
  }

  78%{
    transform:
      translateY(-3px)
      rotate(-1deg);
  }

  100%{
    transform:
      translateY(0)
      rotate(0);
  }

}

.support-cat-head{
  transform-box:view-box;
  transform-origin:95px 133px;

  animation:
    support-head-sleep
    6.2s
    cubic-bezier(.45,0,.35,1)
    forwards;
}


@keyframes support-eyes-close{

  0%,50%{
    transform:scaleY(1);
    opacity:1;
  }

  82%{
    transform:scaleY(.05);
    opacity:1;
  }

  100%{
    transform:scaleY(.05);
    opacity:0;
  }

}

.support-eyes-open{
  transform-box:fill-box;
  transform-origin:center;

  animation:
    support-eyes-close
    6.2s ease
    forwards;
}


@keyframes support-eyes-sleep{

  0%,58%{
    opacity:0;
  }

  88%,100%{
    opacity:1;
  }

}

.support-eyes-closed{
  opacity:0;

  animation:
    support-eyes-sleep
    6.2s ease
    forwards;
}


/* ---------------------------------------------------------
   ZZZ
   --------------------------------------------------------- */

@keyframes support-zzz{

  0%{
    opacity:0;

    transform:
      translateY(0)
      scale(.78);
  }

  24%{
    opacity:.78;
  }

  80%{
    opacity:.5;
  }

  100%{
    opacity:0;

    transform:
      translateY(-42px)
      translateX(6px)
      scale(1.15);
  }

}

.support-zzz{
  position:absolute;

  color:#f0d9a9;

  font-family:
    "Playfair Display",
    serif;

  font-weight:600;

  text-shadow:
    0 0 8px
    rgba(230,191,120,.32);

  opacity:0;
}

.support-z1{
  top:22%;
  left:59%;

  font-size:20px;

  animation:
    support-zzz
    3s linear
    infinite 6.5s;
}

.support-z2{
  top:16%;
  left:68%;

  font-size:13px;

  animation:
    support-zzz
    3s linear
    infinite 7.5s;
}


/* ---------------------------------------------------------
   COPY
   --------------------------------------------------------- */

.support-popup-copy{
  position:relative;
  z-index:2;

  display:flex;
  flex-direction:column;
  justify-content:center;

  padding:
    50px 52px 48px;
}

.support-popup-kicker{
  margin-bottom:12px;

  color:
    rgba(174,145,255,.78);

  font-family:
    "DM Sans",
    sans-serif;

  font-size:10px;
  font-weight:700;

  letter-spacing:.18em;
  text-transform:uppercase;
}

.support-popup-copy h2{
  margin:0 0 21px;

  font-family:
    "Playfair Display",
    serif;

  font-size:
    clamp(37px,5vw,50px);

  font-weight:500;

  line-height:1;

  letter-spacing:-.035em;

  background:
    linear-gradient(
      115deg,
      #fff 5%,
      #f2dfbb 48%,
      #dcae5a 90%
    );

  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;

  background-clip:text;
}

.support-popup-copy p{
  margin:0;

  color:#aeb8c7;

  font-family:
    "DM Sans",
    sans-serif;

  font-size:14px;

  line-height:1.7;
}

.support-popup-copy p strong{
  color:#e9d6af;
  font-weight:600;
}


/* ---------------------------------------------------------
   PIX
   --------------------------------------------------------- */

.support-pix{
  position:relative;

  width:fit-content;
  max-width:100%;

  display:flex;
  align-items:center;

  gap:12px;

  margin-top:24px;

  padding:12px 15px;

  border:
    1px solid rgba(230,191,120,.25);

  border-radius:12px;

  color:#eed9ae;

  background:
    rgba(230,191,120,.045);

  font-family:
    "DM Sans",
    sans-serif;

  font-size:13px;
  font-weight:600;

  cursor:pointer;

  transition:
    border-color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.support-pix:hover{
  border-color:
    rgba(230,191,120,.52);

  background:
    rgba(230,191,120,.075);

  transform:
    translateY(-1px);
}

.support-pix svg{
  width:16px;
  height:16px;

  color:#8d98aa;
}

.support-copy-status{
  position:absolute;

  left:50%;
  bottom:calc(100% + 8px);

  padding:5px 8px;

  border-radius:7px;

  color:#09111f;

  background:#e6bf78;

  font-size:10px;
  font-weight:700;

  transform:
    translateX(-50%)
    translateY(3px);

  opacity:0;

  pointer-events:none;

  transition:
    opacity .2s ease,
    transform .2s ease;
}

.support-copy-status.show{
  opacity:1;

  transform:
    translateX(-50%)
    translateY(0);
}


/* ---------------------------------------------------------
   THANKS + CUP
   --------------------------------------------------------- */

.support-thanks{
  margin-top:23px !important;

  color:#7e899b !important;

  font-family:
    "Playfair Display",
    serif !important;

  font-size:16px !important;
  font-style:italic;
}

.support-thanks span{
  color:#caa35d;
}


.support-cup{
  position:absolute;

  right:26px;
  bottom:22px;

  width:56px;

  opacity:.42;

  pointer-events:none;
}

.support-cup svg{
  display:block;
  width:100%;
}


/* ---------------------------------------------------------
   HINT
   --------------------------------------------------------- */

.support-popup-hint{
  position:absolute;

  left:50%;
  bottom:18px;

  transform:translateX(-50%);

  color:
    rgba(177,187,202,.42);

  font-family:
    "DM Sans",
    sans-serif;

  font-size:10px;

  letter-spacing:.08em;

  white-space:nowrap;

  pointer-events:none;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media(max-width:700px){

  .support-popup-overlay{
    padding:14px;
    align-items:center;
  }

  .support-popup{
    grid-template-columns:1fr;

    width:min(460px,100%);

    max-height:
      calc(100vh - 28px);

    overflow:auto;
  }

  .support-popup-art{
    min-height:170px;

    padding:15px;

    border-right:0;

    border-bottom:
      1px solid
      rgba(230,191,120,.10);
  }

  .support-cat{
    width:145px;
  }

  .support-popup-copy{
    padding:
      31px 28px 36px;
  }

  .support-popup-copy h2{
    font-size:38px;
  }

  .support-popup-hint{
    display:none;
  }

  .support-cup{
    right:19px;
    bottom:17px;

    width:46px;
  }

}


@media(prefers-reduced-motion:reduce){

  .support-popup,
  .support-popup-overlay,
  .support-popup-close,
  .support-pix,
  .support-cat-body,
  .support-cat-head,
  .support-eyes-open,
  .support-eyes-closed,
  .support-zzz{
    animation:none !important;
    transition:none !important;
  }

  .support-eyes-open{
    opacity:0;
  }

  .support-eyes-closed{
    opacity:1;
  }

}


/* =========================================================
   PERMANENT SUPPORT FOOTNOTE
   ========================================================= */

.support-footnote{
  margin-top:13px;

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

  gap:6px;
  flex-wrap:wrap;

  color:#596579;

  font-family:
    "DM Sans",
    sans-serif;

  font-size:11px;
  font-weight:400;

  line-height:1.55;

  letter-spacing:.015em;
}

footer.refs .support-footnote{
  margin-top:18px;
  padding-top:14px;

  border-top:
    1px solid
    rgba(255,255,255,.04);
}

.support-footnote strong{
  display:inline;

  margin:0;

  color:#737e90;

  font-size:inherit;
  font-weight:500;

  letter-spacing:0;
  text-transform:none;
}

.support-footnote-open{
  appearance:none;

  margin:0;
  padding:0;

  border:0;
  border-bottom:
    1px dotted
    rgba(230,191,120,.36);

  color:#927d58;

  background:none;

  font:inherit;

  cursor:pointer;

  transition:
    color .2s ease,
    border-color .2s ease;
}

.support-footnote-open:hover{
  color:#e6bf78;

  border-bottom-color:
    rgba(230,191,120,.7);
}

.support-footnote-separator{
  color:#465165;
}

@media(max-width:600px){

  .support-footnote{
    padding-left:10px;
    padding-right:10px;

    font-size:10px;
  }

}
