/* Card shop and ownership reveal share the game's navy, enamel and gold materials. */
#modal[data-variant='recruit'] {
  width: min(590px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  max-height: calc(100dvh - 20px);
  box-sizing: border-box;
  background: #102d43;
  color: #fff0bd;
  border: 2px solid #edc875;
  box-shadow:
    inset 0 0 0 3px #345e70,
    0 7px #806031,
    0 25px 90px #0009;
}
#modal[data-variant='recruit'] .modal-chrome {
  min-height: 54px;
  padding: 5px 12px;
  gap: 8px;
  background: #193e50;
  border-bottom: 1px solid #e8cb7755;
}
#modal[data-variant='recruit'] .modal-brand {
  font-size: 14px;
  letter-spacing: 0.4px;
}
#modal[data-variant='recruit'] .modal-emblem {
  width: 30px;
}
#modal[data-variant='recruit'] .modal-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-basis: 44px;
}
#modal[data-variant='recruit'] .modal-body {
  display: block;
  padding: 0 20px 18px;
}
.purchase-hero {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin: 0 -20px;
  padding: 24px 24px 20px;
  background:
    radial-gradient(ellipse at 15% 45%, #417d83, transparent 70%),
    linear-gradient(125deg, #234c60, #102d43);
}
.purchase-art {
  position: relative;
  width: 138px;
  height: 184px;
  transform: rotate(-4deg);
  border: 3px solid #ffe69a;
  border-radius: 19px;
  box-shadow:
    0 6px #9b743d,
    0 10px 25px #00101faa;
  background: #112738;
}
.purchase-art > svg {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}
.purchase-energy {
  position: absolute;
  bottom: -10px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #e6fcff;
  background: linear-gradient(#50b7c7, #23667f);
  border: 2px solid #a2e8ed;
  border-radius: 12px;
  padding: 3px 7px;
  font:
    26px 'Lilita One',
    sans-serif;
  box-shadow: 0 3px #0a374e;
}
.purchase-energy img {
  width: 22px;
  height: 28px;
}
.purchase-energy small {
  font:
    800 10px 'Nunito',
    sans-serif;
  margin-left: 3px;
}
.purchase-role {
  font:
    900 13px 'Nunito',
    sans-serif;
  color: #9ce8e7;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
#modal .purchase-identity h2 {
  font:
    36px/1.03 'Lilita One',
    sans-serif;
  color: #ffe69b;
  text-shadow: 0 3px #624527;
  margin: 6px 0 12px;
}
.purchase-rank {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.purchase-rank b {
  font:
    17px 'Lilita One',
    sans-serif;
  background: #eac46d;
  color: #674619;
  padding: 4px 9px;
  border-radius: 7px;
  box-shadow: 0 3px #917044;
}
.purchase-rank span {
  font-size: 13px;
  color: #b9d5d9;
}
#modal .purchase-identity p {
  font-size: 16px;
  line-height: 1.35;
  color: #e1eded;
  margin: 12px 0 0;
}
.purchase-stats {
  display: grid;
  grid-template-columns: repeat(var(--stat-count, 3), minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}
.purchase-stats > div {
  text-align: center;
  padding: 0 4px;
}
.purchase-stats > div + div {
  border-left: 1px solid #80b5bd44;
}
.purchase-stats dt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #c4dce0;
  font:
    800 14px 'Nunito',
    sans-serif;
}
.purchase-stats dt img {
  width: 38px;
  height: 40px;
  filter: drop-shadow(0 3px 2px #061c2e);
}
.purchase-stats dd {
  color: #fff1bd;
  font:
    30px/1.2 'Lilita One',
    sans-serif;
  margin: 2px 0 0;
}
#modal[data-variant='recruit'] .purchase-tactic {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.35;
  color: #daeee8;
  margin: 16px 0;
}
.purchase-tactic img {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
}
.purchase-budget {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid #77a4af66;
}
.purchase-budget > img {
  width: 45px;
  height: 48px;
  filter: drop-shadow(0 0 12px #46e6ff44);
}
.purchase-budget > div {
  display: grid;
  gap: 2px;
}
.purchase-budget small,
.purchase-balance > span {
  color: #b3d3d9;
  font-size: 13px;
}
.purchase-budget strong {
  font:
    34px/1 'Lilita One',
    sans-serif;
  color: #a5f2fa;
}
.purchase-budget strong span {
  font:
    800 14px 'Nunito',
    sans-serif;
}
.purchase-budget .purchase-balance {
  margin-left: auto;
  text-align: right;
}
.purchase-balance strong {
  font:
    800 13px/1.3 'Nunito',
    sans-serif;
  color: #d7edb5;
}
.purchase-condition {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 14px 0;
}
.purchase-condition img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}
#modal .purchase-condition p {
  margin: 0;
  color: #e1ece4;
  font-size: 15px;
  line-height: 1.25;
}
.purchase-condition[data-state='locked'] p {
  color: #ffe0a5;
}
#modal[data-variant='recruit'] .purchase-actions {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  background: none;
}
#modal #recruit-back {
  flex: 0 0 22%;
  border: 1px solid #688e9a;
  background: #244b5e;
  color: #d7e9e7;
  box-shadow: 0 4px #0a2034;
  border-radius: 14px;
  font-size: 17px;
  padding: 8px;
}
#modal #recruit-confirm,
#modal #unlocked-continue {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 8px 12px;
  background: linear-gradient(#fff0a8 0%, #ffdf80 48%, #f2bf4a 49%, #ecb33e);
  border: 2px solid #fff3b2;
  border-radius: 16px;
  color: #66461e;
  box-shadow:
    inset 0 3px #fff8cc,
    0 5px #936328;
  font:
    25px/1.1 'Lilita One',
    sans-serif;
}
#recruit-confirm img,
#unlocked-continue img {
  width: 30px;
  height: 32px;
}
#modal[data-variant='recruit'] #recruit-error:empty {
  display: none;
}
#modal[data-variant='recruit'] #recruit-error {
  color: #ffc5ac;
  margin: 10px 0 0;
  font-size: 14px;
}
/* Purchase is already saved when this manual-advance celebration opens. */
#modal[data-variant='card-unlocked'] {
  position: fixed;
  inset: 0;
  transform: none;
  margin: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #2c727f, #102e46 58%, #071b30);
  color: #fff1b9;
  box-shadow: none;
}
#modal[data-variant='card-unlocked'] .modal-chrome {
  display: none;
}
#modal[data-variant='card-unlocked'] .modal-body {
  padding: 0;
  height: 100%;
}
#modal[data-variant='card-unlocked'] #modal-content {
  height: 100%;
}
.card-unlocked {
  position: relative;
  isolation: isolate;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
}
.unlocked-rays {
  position: absolute;
  z-index: -1;
  width: 110vmax;
  height: 110vmax;
  background: repeating-conic-gradient(from 10deg, #b4edc712 0deg 12deg, transparent 12deg 30deg);
  -webkit-mask-image: radial-gradient(#000, transparent 66%);
  mask-image: radial-gradient(#000, transparent 66%);
}
.unlocked-kicker {
  color: #afedec;
  font:
    900 14px 'Nunito',
    sans-serif;
  letter-spacing: 2px;
}
#modal .card-unlocked h2 {
  color: #ffe49a;
  font:
    clamp(34px, 6vw, 54px) / 1.05 'Lilita One',
    sans-serif;
  text-shadow: 0 4px #806035;
  text-align: center;
  margin: 8px 0;
}
#modal[data-variant='card-unlocked'] .unlocked-role {
  color: #d9e9e8;
  font-size: 16px;
  margin: 0;
}
.unlocked-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(170px, 36dvh, 350px);
  perspective: 900px;
}
.unlocked-card {
  position: relative;
  width: clamp(116px, 24dvh, 218px);
  aspect-ratio: 5/7;
  border: 5px solid #ffe38d;
  border-radius: 22px;
  box-shadow:
    0 7px #9e7136,
    0 0 0 2px #b9853d,
    0 0 65px #b5fafd77;
  background: #18344d;
  transform: rotate(-5deg);
}
.unlocked-card > svg {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}
.unlocked-card > span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px 5px 10px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(transparent, #092238 50%);
  color: #fff2c1;
  text-align: center;
  font:
    22px 'Lilita One',
    sans-serif;
}
.unlocked-card > b {
  position: absolute;
  top: -12px;
  left: -13px;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  background: linear-gradient(#61cad9, #28778f);
  border: 2px solid #aceff3;
  border-radius: 12px;
  font:
    28px 'Lilita One',
    sans-serif;
  box-shadow: 0 3px #153a52;
}
.unlocked-card > b img {
  width: 23px;
  height: 28px;
}
.unlocked-sparks {
  position: absolute;
  inset: 50%;
}
.unlocked-sparks i {
  position: absolute;
  width: 9px;
  height: 20px;
  background: #ffeaae;
  box-shadow: 0 0 12px #fff2b5;
  border-radius: 70% 10%;
  transform: rotate(var(--spark-angle)) translateY(-150px);
  opacity: 0.7;
}
.unlocked-stats {
  width: min(440px, 100%);
  margin: 4px 0;
}
#modal[data-variant='card-unlocked'] .unlocked-copy {
  text-align: center;
  max-width: 440px;
  font-size: 17px;
  color: #d7eeeb;
  margin: 18px 0;
  line-height: 1.35;
}
#modal #unlocked-continue {
  flex: 0 0 auto;
  width: min(440px, 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .purchase-art {
    animation: purchase-arrive 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  #recruit-confirm:not(:disabled)::after,
  #unlocked-continue::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, #fff9 48%, transparent 65%);
    transform: translateX(-130%);
    animation: ad-gift-shine 3.5s 1s infinite;
    pointer-events: none;
  }
  .unlocked-rays {
    animation: unlocked-rays 45s linear infinite;
  }
  .unlocked-card {
    animation: card-ownership 1s cubic-bezier(0.17, 0.75, 0.24, 1.05) both;
  }
  .unlocked-sparks i {
    animation: unlocked-burst 1.1s var(--spark-delay) both;
  }
  .unlocked-stats,
  .unlocked-copy {
    animation: purchase-arrive 0.5s 0.65s both;
  }
  #unlocked-continue {
    animation: purchase-arrive 0.4s 1.1s both;
  }
}
@keyframes purchase-arrive {
  from {
    opacity: 0;
    translate: 0 16px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes card-ownership {
  0% {
    opacity: 0;
    transform: translateY(45px) rotateY(-110deg) rotate(-15deg) scale(0.5);
  }
  55% {
    opacity: 1;
    transform: translateY(-10px) rotateY(12deg) rotate(4deg) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: rotateY(0) rotate(-5deg) scale(1);
  }
}
@keyframes unlocked-burst {
  0%,
  30% {
    opacity: 0;
    transform: rotate(var(--spark-angle)) translateY(-35px) scale(0.2);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--spark-angle)) translateY(-240px) scale(0.3);
  }
}
@keyframes unlocked-rays {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 400px) {
  .purchase-hero {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 18px 16px;
  }
  .purchase-art {
    width: 102px;
    height: 143px;
  }
  #modal .purchase-identity h2 {
    font-size: 30px;
  }
  .purchase-energy {
    left: 0;
    right: 0;
  }
  .purchase-rank {
    gap: 6px;
  }
  #modal #recruit-confirm {
    font-size: 21px;
    gap: 5px;
    padding: 8px;
  }
  #recruit-confirm img {
    width: 25px;
  }
  .purchase-stats {
    gap: 4px;
  }
  .purchase-stats dd {
    font-size: 27px;
  }
}
@media (max-height: 700px) and (orientation: portrait) {
  #modal[data-variant='recruit'] .modal-body {
    padding: 0 12px 12px;
  }
  .purchase-hero {
    margin: 0 -12px;
    padding: 12px 14px;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }
  .purchase-art {
    width: 88px;
    height: 122px;
  }
  .purchase-energy {
    font-size: 22px;
    padding: 2px;
  }
  .purchase-energy small {
    font-size: 8px;
  }
  .purchase-role {
    font-size: 11px;
  }
  #modal .purchase-identity h2 {
    font-size: 27px;
    margin: 4px 0 8px;
  }
  #modal .purchase-identity p {
    font-size: 13px;
    margin-top: 8px;
  }
  .purchase-rank b {
    font-size: 14px;
  }
  .purchase-rank span {
    font-size: 11px;
  }
  .purchase-stats {
    margin-top: 10px;
  }
  .purchase-stats dt {
    font-size: 12px;
  }
  .purchase-stats dt img {
    width: 29px;
    height: 30px;
  }
  .purchase-stats dd {
    font-size: 25px;
  }
  #modal[data-variant='recruit'] .purchase-tactic {
    font-size: 13px;
    margin: 8px 0;
    gap: 7px;
  }
  .purchase-tactic img {
    width: 27px;
    height: 28px;
    flex-basis: 27px;
  }
  .purchase-budget {
    padding-top: 8px;
    gap: 6px;
  }
  .purchase-budget > img {
    width: 34px;
    height: 37px;
  }
  .purchase-budget strong {
    font-size: 28px;
  }
  .purchase-balance strong {
    font-size: 11px;
  }
  .purchase-budget small,
  .purchase-balance > span {
    font-size: 11px;
  }
  .purchase-condition {
    margin: 8px 0;
  }
  #modal .purchase-condition p {
    font-size: 13px;
  }
  #modal #recruit-confirm {
    min-height: 48px;
    font-size: 20px;
  }
  #modal #recruit-back {
    font-size: 15px;
  }
  .card-unlocked {
    padding: 14px 20px 20px;
  }
  #modal .card-unlocked h2 {
    font-size: 32px;
  }
  #modal[data-variant='card-unlocked'] .unlocked-copy {
    font-size: 14px;
    margin: 10px 0;
  }
  #modal #unlocked-continue {
    min-height: 50px;
    font-size: 23px;
  }
  .unlocked-card > span {
    font-size: 18px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  #modal[data-variant='recruit'] {
    width: min(820px, calc(100vw - 20px));
  }
  #modal[data-variant='recruit'] .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
    padding: 10px 16px 14px;
  }
  .purchase-hero {
    grid-column: 1;
    grid-row: 1/3;
    margin: -10px 0 -14px -16px;
    padding: 16px;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 14px;
    align-content: center;
  }
  .purchase-art {
    width: 90px;
    height: 126px;
  }
  #modal .purchase-identity h2 {
    font-size: 29px;
  }
  #modal .purchase-identity p {
    font-size: 13px;
  }
  .purchase-details,
  .purchase-checkout {
    grid-column: 2;
  }
  .purchase-stats {
    margin: 0;
    gap: 5px;
  }
  .purchase-stats dt {
    font-size: 12px;
  }
  .purchase-stats dt img {
    width: 27px;
    height: 28px;
  }
  .purchase-stats dd {
    font-size: 25px;
  }
  #modal[data-variant='recruit'] .purchase-tactic {
    font-size: 12px;
    margin: 6px 0;
  }
  .purchase-tactic img {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
  .purchase-budget {
    padding-top: 6px;
  }
  .purchase-budget > img {
    width: 33px;
    height: 36px;
  }
  .purchase-budget strong {
    font-size: 28px;
  }
  .purchase-balance strong {
    font-size: 11px;
  }
  .purchase-condition {
    margin: 7px 0;
  }
  #modal .purchase-condition p {
    font-size: 13px;
  }
  #modal #recruit-confirm {
    min-height: 46px;
    font-size: 21px;
  }
  .card-unlocked {
    display: grid;
    grid-template-columns: 40% 1fr;
    grid-template-rows: auto auto auto 1fr auto auto;
    padding: 16px 36px;
    column-gap: 30px;
    justify-items: center;
  }
  .unlocked-stage {
    grid-column: 1;
    grid-row: 1/7;
    height: 100%;
  }
  .unlocked-card {
    width: 150px;
  }
  .unlocked-kicker,
  .card-unlocked h2,
  .unlocked-role,
  .unlocked-stats,
  .unlocked-copy,
  #unlocked-continue {
    grid-column: 2;
  }
  #modal .card-unlocked h2 {
    font-size: 32px;
    margin: 5px 0;
  }
  #modal[data-variant='card-unlocked'] .unlocked-role {
    font-size: 13px;
  }
  #modal[data-variant='card-unlocked'] .unlocked-copy {
    font-size: 14px;
    margin: 8px 0;
  }
  #modal #unlocked-continue {
    min-height: 48px;
    font-size: 24px;
  }
}

/* One wallet, one pack, and a clear funding target at purchase time. */
.purchase-funding {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  padding: 14px 16px;
  border: 1px solid #6095a344;
  border-radius: 16px;
  background: linear-gradient(120deg, #204b60, #123044);
  box-shadow:
    inset 0 1px #c6faff15,
    0 5px 14px #061d3226;
}
.purchase-funding > div > span {
  color: #a7cdd5;
  font:
    900 10px/1 'Nunito',
    sans-serif;
  letter-spacing: 1.2px;
}
.purchase-funding strong {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: #b0f5ff;
  font:
    28px/1 'Lilita One',
    sans-serif;
}
.purchase-funding strong img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 6px #5ee9ff55);
}
.purchase-funding-target {
  text-align: right;
}
.purchase-funding-target strong {
  justify-content: flex-end;
  color: #fff0be;
}
.purchase-funding-track {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 8px;
  background: #061f31;
  overflow: hidden;
  box-shadow: 0 1px #9adddd35;
}
.purchase-funding-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2399b4, #8af4f5);
  box-shadow: 0 0 9px #55deed;
}
#recruit-confirm .purchase-cta-copy {
  display: grid;
  gap: 4px;
}
#recruit-confirm .purchase-cta-copy b {
  font: inherit;
}
#recruit-confirm .purchase-cta-copy small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font:
    900 12px/1.1 'Nunito',
    sans-serif;
  white-space: nowrap;
}
#recruit-confirm .purchase-cta-copy small img {
  width: 18px;
  height: 18px;
}
#recruit-confirm .purchase-cta-copy small i {
  padding: 0 3px;
  font-style: normal;
  opacity: 0.5;
}
#modal[data-variant='gems'] {
  max-width: 570px;
}
.gem-store-single {
  text-align: center;
}
#modal .gem-store-single h2 {
  color: #fff0ba;
  font-size: clamp(25px, 4vw, 36px);
  margin: 8px 0 0;
}
.gem-pack-showcase {
  height: 115px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 8px auto 0;
  background: radial-gradient(ellipse at 50% 85%, #52e8f951, transparent 65%);
}
.gem-pack-showcase img {
  width: 90px;
  filter: drop-shadow(0 5px 7px #001d3d70);
  transform: rotate(-18deg);
  margin-right: -20px;
}
.gem-pack-showcase img:nth-child(2) {
  width: 125px;
  transform: none;
  z-index: 1;
}
.gem-pack-showcase img:nth-child(3) {
  transform: rotate(18deg);
  margin-right: 0;
}
.gem-pack-amount {
  display: block;
  font:
    58px/1 'Lilita One',
    sans-serif;
  color: #a8f3fd;
  text-shadow: 0 4px #0d5265;
  margin: 8px 0 12px;
}
.gem-pack-amount span {
  font-size: 26px;
}
.gem-pack-value {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #b5d7de;
  font:
    800 13px 'Nunito',
    sans-serif;
}
.gem-pack-value strong {
  font:
    26px 'Lilita One',
    sans-serif;
  color: #fff1c1;
}
#modal .gem-pack-alternative {
  margin: 12px 0;
  color: #d6e9e7;
  font-size: 15px;
  line-height: 1.4;
}
.gem-pack-steps {
  display: flex;
  justify-content: center;
  gap: 34px;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.gem-pack-steps li {
  display: grid;
  gap: 4px;
  justify-items: center;
  color: #8db2c0;
  position: relative;
}
.gem-pack-steps li:not(:last-child)::after {
  content: '';
  width: 25px;
  height: 3px;
  position: absolute;
  left: calc(100% + 4px);
  top: 19px;
  border-radius: 4px;
  background: #436270;
}
.gem-pack-steps span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid #6c98a6;
  border-radius: 50%;
  font:
    23px 'Lilita One',
    sans-serif;
}
.gem-pack-steps .current span {
  background: #ffe192;
  border-color: #fff1bc;
  color: #6c4b24;
  box-shadow: 0 0 16px #ffd47833;
}
.gem-pack-steps .done span {
  background: #327d75;
  border-color: #9be4c1;
  color: #eaffdd;
}
.gem-pack-steps small {
  font:
    800 11px 'Nunito',
    sans-serif;
}
#modal .gem-pack-wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #c6e1e7;
  font-size: 16px;
  margin: 12px 0;
}
.gem-pack-wallet img {
  width: 23px;
  height: 23px;
}
.gem-pack-wallet strong {
  font:
    23px 'Lilita One',
    sans-serif;
  color: #acf3fc;
}
#gem-pack-watch {
  display: grid;
  gap: 3px;
  flex: 2;
}
#gem-pack-watch small {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font:
    900 13px 'Nunito',
    sans-serif;
}
#gem-pack-watch img {
  width: 20px;
  height: 20px;
}
#gem-pack-error:empty {
  display: none;
}
#modal #gem-pack-error {
  color: #ffcfaf;
  font-size: 13px;
  margin-bottom: 0;
}
.gem-pack-success {
  text-align: center;
}
.gem-pack-success > img {
  display: block;
  width: 180px;
  margin: 16px auto;
  filter: drop-shadow(0 0 30px #47dfee60);
  animation: pack-arrive 0.65s cubic-bezier(0.2, 1.3, 0.3, 1) both;
}
.gem-pack-success h2 {
  color: #adf4ff;
}
.gem-pack-success > button {
  width: 100%;
}
.ad-gift-art > .gem-gift-crystal {
  width: 145px;
  height: 145px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
@keyframes pack-arrive {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-14deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gem-pack-success > img {
    animation: none;
  }
}
@media (max-width: 420px) {
  .purchase-funding {
    padding: 8px 11px;
    gap: 6px;
  }
  .purchase-funding strong {
    font-size: 23px;
  }
  .purchase-funding strong img {
    width: 23px;
    height: 23px;
  }
  #recruit-confirm .purchase-cta-copy small {
    font-size: 10px;
    gap: 2px;
  }
  #recruit-confirm .purchase-cta-copy small img {
    width: 14px;
    height: 14px;
  }
  #recruit-confirm > img {
    width: 23px;
    height: 23px;
  }
  #recruit-confirm .purchase-cta-copy b {
    font-size: 20px;
  }
  .gem-pack-showcase {
    height: 78px;
  }
  .gem-pack-showcase img {
    width: 65px;
  }
  .gem-pack-showcase img:nth-child(2) {
    width: 90px;
  }
  .gem-pack-amount {
    font-size: 42px;
  }
  .gem-pack-steps {
    margin: 10px 0;
  }
}
@media (max-height: 500px) and (min-width: 600px) {
  .gem-store-single {
    display: grid;
    grid-template-columns: 180px 1fr;
    column-gap: 20px;
  }
  .gem-store-single > .eyebrow,
  #modal .gem-store-single h2 {
    grid-column: 1 / -1;
  }
  .gem-pack-showcase {
    grid-column: 1;
    grid-row: 3 / 5;
    height: 90px;
    width: 170px;
  }
  .gem-pack-showcase img {
    width: 65px;
  }
  .gem-pack-showcase img:nth-child(2) {
    width: 90px;
  }
  .gem-pack-amount {
    grid-column: 1;
    grid-row: 5 / 7;
    font-size: 40px;
  }
  .gem-store-single .modal-actions,
  #gem-pack-error {
    grid-column: 1 / -1;
  }
  #modal .gem-pack-alternative {
    margin: 5px 0;
    font-size: 12px;
  }
  .gem-pack-steps {
    margin: 6px 0;
  }
  .gem-pack-value strong {
    font-size: 22px;
  }
  #modal .gem-pack-wallet {
    margin: 3px 0;
  }
}
#modal[data-variant='gems'] .modal-body {
  display: block;
}
#modal[data-variant='gems'] .gem-store-single > .eyebrow,
#modal[data-variant='gems'] .gem-pack-success > .eyebrow {
  color: #9bdce2;
}
#modal[data-variant='gems'] .gem-store-single p,
#modal[data-variant='gems'] .gem-pack-success p {
  color: #d6e9e7;
  line-height: 1.35;
}
#modal[data-variant='gems'] .gem-store-single p strong,
#modal[data-variant='gems'] .gem-pack-success p strong {
  color: #acf3fc;
}
#modal[data-variant='gems'] .gem-pack-success h2 {
  color: #adf4ff;
}
.upgrade-cta-price small {
  font:
    800 11px/1.2 'Nunito',
    sans-serif;
}
@media (max-width: 420px) and (max-height: 700px) {
  #modal[data-variant='gems'] .modal-body {
    padding: 12px;
  }
  #modal[data-variant='gems'] .modal-chrome {
    min-height: 48px;
    padding: 4px 10px;
  }
  #modal[data-variant='gems'] .modal-close {
    width: 42px;
    height: 42px;
    min-height: 42px;
  }
  #modal[data-variant='gems'] .gem-store-single > .eyebrow {
    display: none;
  }
  #modal .gem-store-single h2 {
    font-size: 24px;
    margin: 2px 0;
  }
  .gem-pack-showcase {
    height: 60px;
    margin-top: 8px;
  }
  .gem-pack-showcase img {
    width: 54px;
  }
  .gem-pack-showcase img:nth-child(2) {
    width: 75px;
  }
  .gem-pack-amount {
    font-size: 36px;
    margin: 6px 0;
  }
  .gem-pack-amount span {
    font-size: 22px;
  }
  .gem-pack-value strong {
    font-size: 23px;
  }
  #modal[data-variant='gems'] .gem-pack-alternative {
    font-size: 13px;
    margin: 8px 0;
  }
  .gem-pack-steps {
    margin: 8px 0;
  }
  .gem-pack-steps span {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .gem-pack-steps li:not(:last-child)::after {
    top: 16px;
  }
  #modal[data-variant='gems'] .gem-pack-wallet {
    margin: 8px 0;
    font-size: 13px;
  }
  #modal[data-variant='gems'] .modal-actions {
    padding: 0;
    margin: 8px 0 0;
  }
  #modal[data-variant='gems'] .modal-actions button {
    min-height: 48px;
    padding: 6px 10px;
    font-size: 17px;
  }
}
@media (max-height: 500px) and (min-width: 600px) {
  #modal[data-variant='gems'] .modal-body {
    padding: 10px 16px;
  }
  #modal[data-variant='gems'] .modal-chrome {
    min-height: 44px;
    padding: 4px 12px;
  }
  #modal[data-variant='gems'] .modal-close {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }
  .gem-store-single {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 3px 16px;
  }
  #modal[data-variant='gems'] .gem-store-single h2 {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 26px;
    margin: 0 0 6px;
  }
  .gem-pack-showcase {
    grid-column: 1;
    grid-row: 2 / 5;
    height: 100%;
    align-self: center;
    align-items: center;
  }
  .gem-pack-amount {
    grid-column: 1;
    grid-row: 5;
    margin: 0;
    font-size: 34px;
  }
  .gem-pack-value {
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
  }
  #modal[data-variant='gems'] .gem-pack-alternative {
    grid-column: 2;
    grid-row: 3;
    font-size: 12px;
    margin: 3px 0;
  }
  .gem-pack-steps {
    grid-column: 2;
    grid-row: 4;
    margin: 3px 0;
    gap: 24px;
  }
  .gem-pack-steps span {
    width: 30px;
    height: 30px;
    font-size: 19px;
  }
  .gem-pack-steps small {
    white-space: nowrap;
    font-size: 10px;
  }
  .gem-pack-steps li:not(:last-child)::after {
    width: 17px;
    top: 15px;
  }
  #modal[data-variant='gems'] .gem-pack-wallet {
    grid-column: 2;
    grid-row: 5;
    margin: 2px 0;
    font-size: 12px;
  }
  #modal[data-variant='gems'] .modal-actions {
    grid-column: 1 / -1;
    grid-row: 6;
    padding: 0;
    margin: 5px 0 0;
  }
  #modal[data-variant='gems'] .modal-actions button {
    min-height: 42px;
    font-size: 16px;
    padding: 5px;
  }
}
@media (max-width: 420px) and (max-height: 700px) {
  #modal[data-variant='recruit'] .purchase-hero {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  #modal[data-variant='recruit'] .purchase-stats {
    margin-top: 6px;
  }
  #modal[data-variant='recruit'] .purchase-tactic {
    margin: 6px 0;
    font-size: 12px;
    line-height: 1.3;
  }
  .purchase-funding {
    padding: 6px 10px;
    gap: 5px;
  }
  .purchase-funding > div > span {
    font-size: 9px;
  }
  .purchase-funding strong {
    font-size: 22px;
    margin-top: 2px;
  }
  .purchase-funding strong img {
    width: 21px;
    height: 21px;
  }
  .purchase-funding-track {
    height: 5px;
  }
  #modal[data-variant='recruit'] .purchase-condition {
    margin: 7px 0;
  }
}
@media (max-height: 500px) and (min-width: 600px) {
  .purchase-funding {
    padding: 5px 10px;
    gap: 4px;
  }
  .purchase-funding > div > span {
    display: block;
    font-size: 8px;
  }
  .purchase-funding strong {
    font-size: 21px;
    line-height: 1;
    margin-top: 2px;
  }
  .purchase-funding strong img {
    width: 22px;
    height: 22px;
  }
  .purchase-funding-track {
    height: 4px;
  }
  #modal[data-variant='recruit'] .purchase-condition {
    margin: 5px 0;
  }
  #modal[data-variant='recruit'] .purchase-condition img {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }
}

/* Confirmed ad steps and credited packs share a full-screen celebration stage. */
#modal[data-variant='gem-celebration'] {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff0c0;
  background: radial-gradient(ellipse at 50% 35%, #326c7d, #123347 60%, #0b2539);
  box-shadow: none;
  overflow-y: auto;
}
#modal[data-variant='gem-celebration'] .modal-chrome {
  position: absolute;
  inset: max(10px, env(safe-area-inset-top)) 12px auto auto;
  padding: 0;
  border: 0;
  background: none;
  z-index: 3;
}
#modal[data-variant='gem-celebration'] .modal-chrome > :not(.modal-close) {
  display: none;
}
#modal[data-variant='gem-celebration'] .modal-body {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 70px 24px 28px;
  box-sizing: border-box;
  overflow: hidden;
}
.gem-celebration {
  width: min(100%, 540px);
  text-align: center;
  position: relative;
  isolation: isolate;
}
#modal .gem-celebration .eyebrow {
  color: #aad8dc;
  letter-spacing: 3px;
  font-size: 12px;
}
.gem-celebration-stage {
  height: clamp(135px, 28vh, 280px);
  position: relative;
  display: grid;
  place-items: center;
  margin: 16px auto 8px;
}
.gem-celebration-halo {
  position: absolute;
  width: min(85vw, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #b4fbff20 0deg 12deg, transparent 12deg 30deg);
  mask-image: radial-gradient(circle, #000 15%, transparent 70%);
  animation: gem-reward-rays 18s linear infinite;
  z-index: -1;
}
.gem-celebration-treasure {
  position: absolute;
  width: min(75%, 280px);
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px #55dcf780);
  animation: gem-reward-arrive 1000ms cubic-bezier(0.18, 0.8, 0.3, 1.15) both;
}
#modal .gem-celebration h2 {
  font:
    clamp(38px, 7vw, 68px) / 1.05 'Lilita One',
    sans-serif;
  color: #b2f6ff;
  text-shadow:
    0 4px 0 #23758d,
    0 8px 24px #0005;
  margin: 14px 0;
  animation: gem-reward-copy 550ms 240ms both;
}
#modal .gem-celebration h2 > span:last-child {
  display: block;
  font-size: 0.5em;
  margin-top: 8px;
}
#modal .gem-celebration p {
  color: #c8e1e5;
  font-size: 18px;
  margin: 12px 0;
}
.gem-celebration-wallet {
  margin: 26px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-block: 1px solid #91d9df3b;
  background: linear-gradient(90deg, transparent, #67c0d312, transparent);
}
.gem-celebration-wallet small {
  font-size: 18px;
  color: #c7e4e9;
}
.gem-celebration-wallet > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gem-celebration-wallet img {
  width: 36px;
  height: 40px;
}
.gem-celebration-wallet strong {
  font:
    36px/1 'Lilita One',
    sans-serif;
  color: #fff4cc;
  font-variant-numeric: tabular-nums;
}
.gem-celebration > .primary {
  width: min(100%, 390px);
  min-height: 62px;
  font-size: 26px;
}
.gem-celebration > .primary > span {
  margin-left: 12px;
}
.gem-celebration-later {
  display: block;
  margin: 16px auto 0;
  padding: 8px 16px;
  background: none;
  border: 0;
  box-shadow: none;
  color: #c1dade;
  font-size: 16px;
}
.gem-step-seal {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff6ce;
  font-size: 72px;
  background: linear-gradient(145deg, #65cebd, #217f82);
  border: 3px solid #c3ffed;
  box-shadow:
    0 8px 0 #13505d,
    0 0 60px #6ee6d866,
    inset 0 2px 0 #fff9;
  animation: gem-reward-arrive 750ms cubic-bezier(0.18, 0.8, 0.3, 1.15) both;
}
.gem-celebration-steps {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  list-style: none;
  margin: 28px auto;
}
.gem-celebration-steps li {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid #7ca2ad;
  border-radius: 50%;
  color: #b7d3db;
  font:
    24px 'Lilita One',
    sans-serif;
}
.gem-celebration-steps li.done {
  color: #173e4d;
  background: #a3ede0;
  border-color: #e3fff3;
  box-shadow: 0 0 16px #7ddfd94d;
}
.gem-celebration-particles {
  position: absolute;
  inset: 50%;
  pointer-events: none;
}
.gem-celebration-particles img {
  position: absolute;
  width: 21px;
  height: 27px;
  opacity: 0;
  animation: gem-reward-burst 1700ms var(--delay) cubic-bezier(0.12, 0.7, 0.3, 1) both;
}
@keyframes gem-reward-burst {
  0% {
    transform: rotate(var(--angle)) translateX(20px) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  75% {
    opacity: 0.8;
  }
  100% {
    transform: rotate(var(--angle)) translateX(var(--distance)) rotate(110deg) scale(0.6);
    opacity: 0;
  }
}
@keyframes gem-reward-arrive {
  0% {
    transform: translateY(40px) scale(0.35) rotate(-15deg);
    opacity: 0;
  }
  65% {
    transform: translateY(-8px) scale(1.08) rotate(3deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1) rotate(0);
    opacity: 1;
  }
}
@keyframes gem-reward-copy {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes gem-reward-rays {
  to {
    transform: rotate(360deg);
  }
}
@media (max-height: 650px) {
  #modal[data-variant='gem-celebration'] .modal-body {
    padding: 58px 18px 18px;
  }
  .gem-celebration-stage {
    height: 125px;
    margin: 6px auto;
  }
  #modal .gem-celebration h2 {
    font-size: 38px;
    margin: 10px 0;
  }
  #modal .gem-celebration p {
    font-size: 15px;
    margin: 8px 0;
  }
  .gem-celebration-wallet {
    margin: 16px auto;
    padding: 10px;
  }
  .gem-celebration-steps {
    margin: 16px auto;
  }
  .gem-celebration > .primary {
    min-height: 52px;
    font-size: 23px;
  }
}
@media (max-height: 450px) and (min-width: 600px) {
  .gem-celebration {
    width: min(100%, 720px);
    display: grid;
    grid-template-columns: 40% 1fr;
    align-items: center;
    column-gap: 20px;
  }
  .gem-celebration > .eyebrow {
    grid-column: 2;
  }
  .gem-celebration-stage {
    grid-column: 1;
    grid-row: 1 / span 6;
    height: 230px;
    width: 100%;
  }
  .gem-celebration > :not(.gem-celebration-stage) {
    grid-column: 2;
  }
  .gem-celebration-wallet {
    margin: 8px 0;
  }
  .gem-celebration-later {
    margin-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gem-celebration *,
  #modal .gem-celebration h2 {
    animation: none !important;
  }
  .gem-celebration-particles {
    display: none;
  }
}
/* Let the gems gather first; amount and balance enter together at 1.5 seconds. */
#modal .gem-celebration.is-award h2,
.gem-celebration.is-award .gem-celebration-wallet {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
  animation: none;
}
#modal .gem-celebration.is-award.is-counting h2,
.gem-celebration.is-award.is-counting .gem-celebration-wallet {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  #modal .gem-celebration.is-award h2,
  .gem-celebration.is-award .gem-celebration-wallet {
    transition: none;
  }
}

/* Intermediate ad steps: show the goal and progress, reserving the award burst for credit. */
#modal[data-variant='gem-celebration']:has(.is-step) {
  background: radial-gradient(ellipse at 50% 36%, #2e6475 0, #12364b 52%, #0a2236 100%);
}
#modal[data-variant='gem-celebration']:has(.is-step) .modal-body {
  padding: max(68px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom));
}
#modal .gem-celebration.is-step {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 420px);
  gap: 0;
}
#modal .is-step .eyebrow {
  font:
    900 11px/1.2 'Nunito',
    sans-serif;
  letter-spacing: 2.5px;
  color: #acd7dc;
}
#modal .is-step h2 {
  color: #ffe7a1;
  font:
    38px/1.08 'Lilita One',
    sans-serif;
  text-shadow:
    0 3px #815d2e,
    0 8px 18px #051e3d77;
  margin: 10px 0 12px;
  animation: gem-reward-copy 0.45s ease-out both;
}
#modal .is-step .gem-celebration-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font:
    800 14px/1.3 'Nunito',
    sans-serif;
  color: #bce9df;
  margin: 0;
}
.is-step .gem-celebration-subtitle > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #123f4a;
  background: #b0eee0;
}
.pack-step-prize {
  padding: 4px 0 20px;
  position: relative;
}
.pack-step-art {
  position: relative;
  height: 172px;
  width: 270px;
  max-width: 100%;
  margin: 0 auto;
  isolation: isolate;
}
.pack-step-glow {
  position: absolute;
  inset: 8% -15% -10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #81f4e846, #41bfd31b 40%, transparent 70%);
  z-index: -1;
}
.pack-step-art > img {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 8px 5px #001c3980) drop-shadow(0 0 12px #5cdef640);
  animation: pack-prize-enter 0.65s cubic-bezier(0.2, 0.8, 0.3, 1.15) both;
}
.pack-step-art > img:nth-of-type(1) {
  width: 108px;
  height: 120px;
  left: 6px;
  top: 39px;
  transform: rotate(-20deg);
  --crystal-turn: -20deg;
}
.pack-step-art > img:nth-of-type(2) {
  width: 111px;
  height: 126px;
  right: 7px;
  top: 32px;
  transform: rotate(19deg);
  --crystal-turn: 19deg;
  animation-delay: 0.08s;
}
.pack-step-art > img:nth-of-type(3) {
  width: 147px;
  height: 150px;
  left: 62px;
  top: 10px;
  --crystal-turn: -4deg;
  transform: rotate(-4deg);
  animation-delay: 0.16s;
}
.pack-step-spark {
  position: absolute;
  top: 27px;
  right: 36px;
  font: 32px/1 serif;
  color: #f7ffef;
  text-shadow: 0 0 12px #8dffff;
  animation: pack-spark 2.8s ease-in-out infinite;
}
.pack-step-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
}
.pack-step-value > strong {
  font:
    60px/0.95 'Lilita One',
    sans-serif;
  color: #b5f8ff;
  text-shadow:
    0 4px #20778e,
    0 0 24px #51d6df33;
}
.pack-step-value > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font:
    27px/1 'Lilita One',
    sans-serif;
  color: #d7ffff;
}
.pack-step-value small {
  font:
    900 8px/1.3 'Nunito',
    sans-serif;
  letter-spacing: 1px;
  color: #a8cdd3;
}
.pack-step-progress {
  padding: 16px 18px 14px;
  border: 1px solid #81b8c14a;
  border-radius: 18px;
  background: linear-gradient(120deg, #295666bb, #102f43dd);
  box-shadow:
    inset 0 1px #c8f5ef12,
    0 5px 20px #061c302b;
}
.pack-step-progress-label {
  display: flex;
  justify-content: space-between;
  font:
    900 12px/1.2 'Nunito',
    sans-serif;
  color: #c5e2e6;
}
.pack-step-progress-label > span {
  color: #b2f4e7;
  font-variant-numeric: tabular-nums;
}
.pack-step-track {
  height: 10px;
  padding: 2px;
  margin-top: 10px;
  border-radius: 10px;
  background: #081f32;
  box-shadow: inset 0 1px 2px #0006;
}
.pack-step-track > i {
  display: block;
  height: 100%;
  width: var(--step-fill);
  background: linear-gradient(90deg, #3bacae, #b4ffe0);
  border-radius: inherit;
  box-shadow: 0 0 10px #76e8dc55;
  animation: pack-step-fill 0.8s 0.2s ease-out both;
}
#modal .is-step .gem-celebration-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 0;
}
#modal .is-step .gem-celebration-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #a8c7d1;
}
#modal .is-step .gem-celebration-steps li > b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #6f98a6;
  border-radius: 50%;
  font:
    20px/1 'Lilita One',
    sans-serif;
  background: #153447;
}
#modal .is-step .gem-celebration-steps li > span {
  font:
    800 10px/1.2 'Nunito',
    sans-serif;
}
#modal .is-step .gem-celebration-steps .done > b {
  background: #9ee9d5;
  color: #164752;
  border-color: #dcfff2;
  box-shadow: 0 0 12px #7ed7c82b;
}
#modal .is-step .gem-celebration-steps .next > b {
  background: #f7d985;
  color: #6b4827;
  border-color: #fff0bb;
  box-shadow: 0 2px #977235;
}
#modal .is-step .gem-celebration-steps .next > span {
  color: #f7dda3;
}
#modal .is-step .pack-step-remaining {
  font:
    700 13px/1.4 'Nunito',
    sans-serif;
  color: #d3e4e7;
  margin: 16px 0;
}
#modal .is-step #gem-step-continue {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  font:
    24px/1.15 'Lilita One',
    sans-serif;
  border-radius: 16px;
  border: 2px solid #fff1b4;
  background: linear-gradient(#ffe99b 0 48%, #f3c04e 49%, #ecb13b);
  color: #67451d;
  box-shadow:
    inset 0 2px #fff9ca,
    0 5px #a37534,
    0 8px 24px #061b342e;
}
#modal .is-step #gem-step-continue > span {
  margin: 0;
}
#modal .is-step #gem-step-later {
  color: #c7e1e5;
  margin: 13px auto 0;
  padding: 7px 18px;
  font:
    900 13px/1.3 'Nunito',
    sans-serif;
  min-height: 48px;
  background: none;
  box-shadow: none;
  border: 0;
}
#gem-step-later small {
  display: block;
  margin-top: 3px;
  font:
    700 10px/1.3 'Nunito',
    sans-serif;
  color: #91b9c5;
}
@keyframes pack-prize-enter {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(var(--crystal-turn)) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--crystal-turn)) scale(1);
  }
}
@keyframes pack-step-fill {
  from {
    width: var(--step-before);
  }
  to {
    width: var(--step-fill);
  }
}
@keyframes pack-spark {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-height: 700px) {
  #modal[data-variant='gem-celebration']:has(.is-step) .modal-body {
    padding-top: 60px;
    padding-bottom: 14px;
  }
  #modal .is-step h2 {
    font-size: 30px;
    margin-block: 7px;
  }
  .pack-step-art {
    height: 108px;
    transform: scale(0.65);
    transform-origin: center top;
    margin-bottom: 0;
  }
  .pack-step-prize {
    padding-bottom: 14px;
  }
  .pack-step-value > strong {
    font-size: 48px;
  }
  .pack-step-value > span {
    font-size: 23px;
  }
  .pack-step-progress {
    padding: 12px 14px;
  }
  #modal .is-step .gem-celebration-steps {
    margin-top: 10px;
  }
  #modal .is-step .pack-step-remaining {
    margin-block: 12px;
  }
}
@media (max-height: 450px) and (min-width: 600px) {
  #modal .gem-celebration.is-step {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    column-gap: 30px;
    width: min(100%, 740px);
  }
  #modal .is-step > .pack-step-heading {
    grid-column: 1;
    grid-row: 1;
  }
  #modal .is-step > .pack-step-prize {
    grid-column: 1;
    grid-row: 2 / 5;
  }
  #modal .is-step > .pack-step-progress {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: end;
  }
  #modal .is-step > .pack-step-remaining {
    grid-column: 2;
    grid-row: 3;
  }
  #modal .is-step > #gem-step-continue {
    grid-column: 2;
    grid-row: 4;
  }
  #modal .is-step > #gem-step-later {
    grid-column: 2;
    grid-row: 5;
    margin-top: 8px;
  }
  #modal .is-step h2 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pack-step-art *,
  .pack-step-track > i {
    animation: none !important;
  }
}

@media (max-height: 700px) {
  #modal .is-step #gem-step-later {
    margin-top: 6px;
    min-height: 40px;
    padding-block: 4px;
  }
  #modal .is-step .pack-step-remaining {
    margin-block: 9px;
  }
  #modal .is-step .gem-celebration-steps li > b {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
  .pack-step-prize {
    padding-bottom: 10px;
  }
}
