/* Gogo Package Catch component */

.gogo-catch-invite {
  position: relative;
  display: grid;
  min-height: 325px;
  grid-template-columns: minmax(380px, .85fr) minmax(0, 1.15fr);
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #dce6ff;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 22%, rgb(255 255 255 / 24%) 0 7%, transparent 7.2%),
    linear-gradient(112deg, #202b4c 0 43%, #f5f8ff 43.2% 100%);
  box-shadow: 0 14px 35px rgb(28 49 103 / 10%);
}

.gogo-catch-invite::after {
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 350px;
  border: 50px solid rgb(45 91 211 / 5%);
  border-radius: 50%;
  content: "";
  aspect-ratio: 1;
}

.gogo-catch-invite__art { position: relative; min-height: 325px; }

.gogo-catch-invite__mascot {
  position: absolute;
  z-index: 3;
  bottom: -58px;
  left: 50%;
  width: 290px;
  height: 350px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgb(0 0 0 / 24%));
  transform: translateX(-50%);
}

.gogo-catch-orbit {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 74px;
  place-items: center;
  border: 4px solid rgb(255 255 255 / 83%);
  border-radius: 18px;
  background: var(--brand-red);
  box-shadow: 0 10px 22px rgb(0 0 0 / 24%);
  aspect-ratio: 1;
  transform: rotate(-9deg);
}

.gogo-catch-orbit img { width: 38px; filter: brightness(0) invert(1); }
.gogo-catch-orbit b { position: absolute; right: -9px; bottom: -9px; padding: 5px 7px; border-radius: 8px; background: #fff; color: var(--brand-red); font-size: 12px; }
.gogo-catch-orbit--one { top: 38px; left: 34px; }
.gogo-catch-orbit--two { top: 20px; right: 26px; background: #ffb91f; transform: rotate(10deg); }
.gogo-catch-orbit--two b { color: #a76200; }
.gogo-catch-orbit--three { right: 14px; bottom: 25px; width: 61px; background: #727782; opacity: .72; transform: rotate(-5deg); }
.gogo-catch-orbit--three b { color: #555963; }

.gogo-catch-invite__copy { position: relative; z-index: 2; align-self: center; padding: 35px 48px 35px 70px; }

.gogo-catch-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #3155ba; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.gogo-catch-eyebrow img { width: 19px; filter: invert(34%) sepia(39%) saturate(1887%) hue-rotate(188deg) brightness(87%); }
.gogo-catch-invite h2 { margin: 11px 0 10px; font-size: clamp(34px, 3.7vw, 49px); letter-spacing: -.045em; line-height: .98; }
.gogo-catch-invite h2 strong { color: var(--brand-red); }
.gogo-catch-invite__copy > p { max-width: 550px; margin: 0 0 17px; color: #666b78; font-size: 14px; line-height: 1.55; }
.gogo-catch-invite__meta { display: flex; gap: 9px; margin-bottom: 20px; }
.gogo-catch-invite__meta span { padding: 7px 10px; border: 1px solid #dfe5f4; border-radius: 9px; background: #fff; color: #777b85; font-size: 10px; }
.gogo-catch-invite__meta b { margin-right: 2px; color: #273864; font-size: 13px; }

.gogo-catch-open {
  display: grid;
  min-width: 238px;
  grid-template-columns: 1fr 30px;
  padding: 12px 12px 12px 19px;
  border: 0;
  border-radius: 12px;
  background: #24396f;
  box-shadow: 0 9px 22px rgb(36 57 111 / 25%);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gogo-catch-open:hover,
.gogo-catch-open:focus-visible { outline: 3px solid rgb(49 85 186 / 20%); outline-offset: 3px; transform: translateY(-2px); }
.gogo-catch-open span { font-size: 15px; font-weight: 900; }
.gogo-catch-open small { grid-column: 1; margin-top: 2px; color: rgb(255 255 255 / 72%); font-size: 10px; }
.gogo-catch-open > img { width: 21px; grid-column: 2; grid-row: 1 / 3; align-self: center; filter: brightness(0) invert(1); }

.gogo-catch-experience {
  position: fixed;
  z-index: 1100;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: 22px;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.gogo-catch-experience.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.gogo-catch-backdrop { position: absolute; background: rgb(13 17 31 / 64%); backdrop-filter: blur(12px) saturate(.7); inset: 0; }
body.gogo-catch-is-open { overflow: hidden; }

.gogo-catch-dialog {
  position: relative;
  width: min(1080px, calc(100vw - 44px));
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 26px;
  background: #f7f9ff;
  box-shadow: 0 32px 95px rgb(0 0 0 / 38%);
  transform: translateY(22px) scale(.98);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.gogo-catch-experience.is-open .gogo-catch-dialog { transform: translateY(0) scale(1); }
.gogo-catch-close { position: absolute; z-index: 30; top: 14px; right: 14px; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid #d9dfef; border-radius: 50%; background: rgb(255 255 255 / 90%); cursor: pointer; }
.gogo-catch-close img { width: 18px; }
.gogo-catch-close:focus-visible,
.gogo-catch-intro button:focus-visible,
.gogo-catch-result button:focus-visible { outline: 3px solid rgb(49 85 186 / 25%); outline-offset: 3px; }

.gogo-catch-header { display: flex; min-height: 112px; align-items: center; justify-content: space-between; gap: 25px; padding: 19px 70px 17px 28px; border-bottom: 1px solid #dfe5f2; background: #fff; }
.gogo-catch-header h2 { margin: 4px 0 2px; font-size: 27px; letter-spacing: -.035em; }
.gogo-catch-header p { margin: 0; color: #747985; font-size: 11px; }
.gogo-catch-counters { display: flex; gap: 9px; }
.gogo-catch-counters > span { display: flex; min-width: 76px; height: 62px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #dfe4ef; border-radius: 12px; background: #f8faff; }
.gogo-catch-counters small { color: #8a8e98; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.gogo-catch-counters strong { color: #24396f; font-size: 22px; line-height: 1.05; }
.gogo-catch-counters span:nth-child(2) strong { color: var(--brand-red); }

.gogo-catch-board { position: relative; height: min(480px, calc(100vh - 250px)); min-height: 390px; overflow: hidden; outline: none; background: linear-gradient(#edf3ff 0 68%, #dce5f4 68% 70%, #cbd6e9 70% 100%); isolation: isolate; }
.gogo-catch-board:focus-visible { box-shadow: inset 0 0 0 4px rgb(49 85 186 / 35%); }
.gogo-catch-board__sky { position: absolute; z-index: -2; inset: 0; }
.gogo-catch-board__sky::before { position: absolute; width: 320px; border: 55px solid rgb(255 255 255 / 48%); border-radius: 50%; content: ""; inset: -200px auto auto -120px; aspect-ratio: 1; }
.gogo-catch-board__sky i { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgb(49 85 186 / 13%), transparent); left: 8%; right: 8%; }
.gogo-catch-board__sky i:nth-child(1) { top: 20%; }.gogo-catch-board__sky i:nth-child(2) { top: 40%; }.gogo-catch-board__sky i:nth-child(3) { top: 60%; }.gogo-catch-board__sky i:nth-child(4) { top: 80%; }
.gogo-catch-lane { position: absolute; z-index: 4; inset: 0; }

.gogo-catch-package {
  --package-left: 50%;
  --package-duration: 5s;
  position: absolute;
  top: -90px;
  left: var(--package-left);
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 17px;
  background: var(--brand-red);
  box-shadow: 0 10px 20px rgb(40 48 72 / 22%);
  color: #fff;
  cursor: crosshair;
  animation: gogo-package-fall var(--package-duration) linear forwards;
  transform: translateX(-50%);
}

.gogo-catch-package img { width: 39px; filter: brightness(0) invert(1); pointer-events: none; }
.gogo-catch-package span { position: absolute; right: -10px; bottom: -9px; min-width: 30px; padding: 5px; border-radius: 9px; background: #fff; box-shadow: 0 4px 10px rgb(0 0 0 / 16%); color: var(--brand-red); font-size: 12px; font-weight: 900; }
.gogo-catch-package.is-gold { background: linear-gradient(145deg, #ffd86a, #f1a800); box-shadow: 0 10px 24px rgb(187 117 0 / 32%); }
.gogo-catch-package.is-gold span { color: #a46100; }
.gogo-catch-package.is-return { background: #747984; opacity: .88; }
.gogo-catch-package.is-return span { color: #575b65; }
.gogo-catch-package:focus-visible { outline: 4px solid rgb(49 85 186 / 38%); outline-offset: 3px; }
.gogo-catch-package.is-caught { animation: gogo-package-caught .3s ease forwards; pointer-events: none; }

@keyframes gogo-package-fall { to { top: calc(100% + 25px); transform: translateX(-50%) rotate(24deg); } }
@keyframes gogo-package-caught { to { opacity: 0; transform: translateX(-50%) scale(1.55) rotate(-10deg); } }

.gogo-catch-mascot { position: absolute; z-index: 3; right: -28px; bottom: -54px; width: 245px; height: 290px; object-fit: contain; filter: drop-shadow(0 14px 15px rgb(41 29 18 / 16%)); pointer-events: none; }
.gogo-catch-basket { position: absolute; z-index: 2; bottom: 21px; left: 50%; display: flex; width: 155px; height: 88px; align-items: center; justify-content: center; gap: 10px; border: 5px solid #fff; border-radius: 20px 20px 32px 32px; background: #24396f; box-shadow: 0 13px 25px rgb(34 49 88 / 25%); color: #fff; transform: translateX(-50%); }
.gogo-catch-basket img { width: 44px; filter: brightness(0) invert(1); }.gogo-catch-basket span { font-size: 11px; font-weight: 900; line-height: 1.1; }

.gogo-catch-intro,
.gogo-catch-result { position: absolute; z-index: 20; top: 50%; left: 50%; width: min(430px, calc(100% - 30px)); padding: 27px; border: 1px solid rgb(255 255 255 / 75%); border-radius: 20px; background: rgb(255 255 255 / 93%); box-shadow: 0 22px 50px rgb(42 51 78 / 23%); backdrop-filter: blur(10px); text-align: center; transform: translate(-50%, -50%); }
.gogo-catch-intro.is-hidden { display: none; }
.gogo-catch-intro__icon,
.gogo-catch-result__icon { display: grid; width: 66px; margin: 0 auto 12px; place-items: center; border-radius: 18px; background: #eef2ff; aspect-ratio: 1; }
.gogo-catch-intro__icon img { width: 38px; filter: invert(31%) sepia(60%) saturate(1030%) hue-rotate(187deg) brightness(88%); }
.gogo-catch-intro h3,
.gogo-catch-result h3 { margin: 0 0 7px; font-size: 27px; letter-spacing: -.035em; }
.gogo-catch-intro p,
.gogo-catch-result p { margin: 0 auto 17px; color: #707580; font-size: 12px; line-height: 1.5; }
.gogo-catch-intro kbd { padding: 2px 6px; border: 1px solid #d6dbe8; border-bottom-width: 2px; border-radius: 5px; background: #f5f7fb; color: #3b4357; font: inherit; font-weight: 800; }
.gogo-catch-intro button { display: inline-flex; align-items: center; gap: 24px; padding: 12px 14px 12px 20px; border: 0; border-radius: 11px; background: var(--brand-red); color: #fff; cursor: pointer; font-size: 14px; font-weight: 900; }
.gogo-catch-intro button img { width: 18px; filter: brightness(0) invert(1); }

.gogo-catch-result { display: none; }
.gogo-catch-result.is-visible { display: block; animation: gogo-result-in .35s ease both; }
.gogo-catch-result__icon { background: #fff1c9; }.gogo-catch-result__icon img { width: 39px; filter: invert(65%) sepia(93%) saturate(738%) hue-rotate(354deg) brightness(95%); }
.gogo-catch-result > small { color: #a46600; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.gogo-catch-result h3 { margin-top: 5px; color: var(--brand-red); font-size: 31px; }
.gogo-catch-result > strong { display: inline-block; margin-bottom: 18px; padding: 8px 18px; border: 1px dashed #eaaeb5; border-radius: 8px; background: #fff6f7; color: #a80012; font-size: 15px; letter-spacing: .08em; }
.gogo-catch-result > div { display: flex; justify-content: center; gap: 8px; }
.gogo-catch-result button { padding: 10px 15px; border: 1px solid #dce1ed; border-radius: 9px; background: #fff; color: #3d465c; cursor: pointer; font-size: 12px; font-weight: 800; }
.gogo-catch-result button:last-child { border-color: #24396f; background: #24396f; color: #fff; }
@keyframes gogo-result-in { from { opacity: 0; transform: translate(-50%, -45%) scale(.94); } }

.gogo-catch-live { position: absolute; z-index: 15; top: 14px; left: 50%; margin: 0; padding: 7px 12px; border-radius: 20px; background: rgb(36 57 111 / 88%); color: #fff; font-size: 10px; font-weight: 700; pointer-events: none; transform: translateX(-50%); }
.gogo-catch-live.is-positive { background: rgb(13 139 79 / 92%); }.gogo-catch-live.is-negative { background: rgb(105 109 119 / 92%); }

.gogo-catch-footer { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 20px; padding: 9px 28px; border-top: 1px solid #dfe5f2; background: #fff; }
.gogo-catch-legend { display: flex; gap: 18px; }
.gogo-catch-legend > span { display: grid; grid-template-columns: 30px auto; align-items: center; column-gap: 7px; }
.gogo-catch-legend i { display: grid; width: 30px; grid-row: 1 / 3; place-items: center; border-radius: 8px; background: var(--brand-red); aspect-ratio: 1; }
.gogo-catch-legend i img { width: 18px; filter: brightness(0) invert(1); }.gogo-catch-legend b { color: #5d6270; font-size: 9px; }.gogo-catch-legend strong { color: var(--brand-red); font-size: 11px; }
.gogo-catch-legend .is-gold i { background: #ffb91f; }.gogo-catch-legend .is-gold strong { color: #a66300; }.gogo-catch-legend .is-return i { background: #747984; }.gogo-catch-legend .is-return strong { color: #5b5f69; }
.gogo-catch-progress { width: 210px; height: 8px; overflow: hidden; border-radius: 10px; background: #e8ebf2; }.gogo-catch-progress i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3155ba, var(--brand-red)); transform-origin: left; transition: transform .2s linear; }

@media (max-width: 767.98px) {
  .gogo-catch-invite { grid-template-columns: 1fr; min-height: 570px; }
  .gogo-catch-invite__art { min-height: 255px; }.gogo-catch-invite__mascot { width: 230px; height: 280px; }
  .gogo-catch-invite__copy { padding: 28px 24px 32px; text-align: center; }.gogo-catch-invite__copy > p { margin-inline: auto; }.gogo-catch-invite__meta { justify-content: center; flex-wrap: wrap; }.gogo-catch-open { margin-inline: auto; }
  .gogo-catch-experience { align-items: end; padding: 8px; }.gogo-catch-dialog { width: 100%; border-radius: 22px; }
  .gogo-catch-header { min-height: 112px; padding: 15px 55px 13px 16px; }.gogo-catch-header p { display: none; }.gogo-catch-header h2 { font-size: 21px; }.gogo-catch-header .gogo-catch-eyebrow { font-size: 9px; }
  .gogo-catch-counters { gap: 5px; }.gogo-catch-counters > span { min-width: 48px; height: 50px; }.gogo-catch-counters strong { font-size: 17px; }.gogo-catch-counters small { font-size: 7px; }
  .gogo-catch-board { height: calc(100vh - 205px); min-height: 430px; }.gogo-catch-package { width: 63px; height: 63px; }.gogo-catch-package img { width: 34px; }
  .gogo-catch-mascot { right: -52px; width: 190px; opacity: .78; }.gogo-catch-basket { left: 45%; width: 125px; height: 72px; }
  .gogo-catch-footer { min-height: 54px; padding: 7px 12px; }.gogo-catch-legend { gap: 5px; }.gogo-catch-legend > span { display: flex; gap: 3px; }.gogo-catch-legend i { width: 25px; }.gogo-catch-legend b { display: none; }.gogo-catch-progress { width: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .gogo-catch-experience,
  .gogo-catch-dialog,
  .gogo-catch-open { transition-duration: .01ms; }
  .gogo-catch-package { animation-name: gogo-package-fall-reduced; animation-timing-function: steps(5, end); }
  @keyframes gogo-package-fall-reduced { to { top: calc(100% + 25px); } }
}
