.gcd-arrival {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  overflow: hidden;
  place-items: center;
  color: #f4f6f1;
  background: #111512;
  animation: arrival-exit .7s ease 4.8s forwards;
}

.terms-pending .gcd-arrival,
.terms-pending .arrival-grid,
.terms-pending .arrival-grid::before,
.terms-pending .arrival-grid::after,
.terms-pending .arrival-project,
.terms-pending .arrival-collaboration,
.terms-pending .gcd-arrival > p {
  animation-play-state: paused !important;
}

.gcd-arrival.dismissed {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s;
}

.arrival-grid {
  position: absolute;
  inset: 0;
  opacity: .4;
  background-image: linear-gradient(rgba(182, 255, 66, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(182, 255, 66, .14) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(700px) rotateX(58deg) scale(1.5) translateY(18%);
  transform-origin: center bottom;
  animation: grid-arrive 2.2s cubic-bezier(.2, .8, .2, 1) both;
}

.arrival-grid::before,
.arrival-grid::after {
  position: absolute;
  content: "";
  background: #ff6b3d;
  box-shadow: 0 0 18px rgba(255, 107, 61, .45);
}

.arrival-grid::before {
  top: 23%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  animation: measure-x 1.2s ease .4s forwards;
}

.arrival-grid::after {
  top: 0;
  left: 72%;
  width: 1px;
  height: 100%;
  background: #69c3d6;
  transform: scaleY(0);
  animation: measure-y 1.2s ease .65s forwards;
}

.arrival-project {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(680px, calc(100% - 44px));
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(17, 21, 18, .84);
  opacity: 0;
  transform: translate(-50%, -58%) scale(.94);
  animation: project-sequence 2.35s cubic-bezier(.2, .8, .2, 1) .45s forwards;
}

.arrival-project > img {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 47%;
}

.arrival-project > div {
  display: grid;
  min-width: 0;
}

.arrival-project small {
  margin-bottom: 8px;
  color: #b6ff42;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}

.arrival-project strong {
  font-size: clamp(27px, 5vw, 54px);
  line-height: 1;
}

.arrival-project span {
  margin-top: 8px;
  color: #aeb9b0;
  font-size: 11px;
  letter-spacing: .11em;
}

.arrival-collaboration {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  width: max-content;
  max-width: calc(100% - 32px);
  opacity: 0;
  transform: translate(-50%, -42%);
  animation: collaboration-arrive .8s ease 2.75s forwards;
}

.arrival-collaboration span {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: clamp(18px, 3vw, 34px);
  font-weight: 900;
  white-space: nowrap;
}

.arrival-collaboration img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 47%;
  background: #fff;
}

.arrival-collaboration i {
  color: #b6ff42;
  font-size: clamp(28px, 5vw, 58px);
  font-style: normal;
}

.gcd-arrival > p {
  position: absolute;
  bottom: 9%;
  margin: 0;
  color: #89948b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2em;
  opacity: 0;
  animation: collaboration-arrive .6s ease 3.25s forwards;
}

#skipArrival {
  position: absolute;
  top: 22px;
  right: 24px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 3px;
  color: #cbd2cc;
  background: transparent;
  font-size: 10px;
}

.collab-x {
  color: #7a837c;
  font-style: normal;
  font-weight: 900;
}

.brand .project-brand-copy {
  display: grid;
  gap: 2px;
}

.brand .project-brand-copy strong {
  font-size: 14px;
}

.partner-brand {
  display: inline-flex !important;
  grid-template: none !important;
  align-items: center;
  gap: 8px;
}

.partner-brand > img {
  width: 48px;
  height: 48px;
  border: 1px solid #c3c8c1;
  border-radius: 7px;
  object-fit: cover;
  background: #fff;
}

.partner-brand > span {
  display: grid;
  gap: 1px;
}

.partner-brand strong {
  font-size: 14px;
}

.partner-brand small {
  font-size: 7px;
}

.footer-collaboration i {
  color: #7a837c;
  font-style: normal;
  font-weight: 900;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
}

.agreement-entry {
  position: relative;
  display: grid;
  align-content: center;
  min-width: 112px;
  height: 38px;
  padding: 4px 22px 4px 10px;
  border: 1px solid #b8beb7;
  border-radius: 5px;
  color: #171a18;
  background: #fff;
  line-height: 1.05;
  text-align: left;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.agreement-entry::after {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #67a52f;
  box-shadow: 0 0 0 3px rgba(103, 165, 47, .13);
  content: "";
}

.agreement-entry span {
  overflow: hidden;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agreement-entry small {
  margin-top: 3px;
  color: #6f7871;
  font: 7px Consolas, monospace;
  letter-spacing: .08em;
}

a.agreement-entry:hover {
  border-color: #171a18;
  box-shadow: 3px 3px 0 #b6ff42;
  transform: translate(-1px, -1px);
}

.agreement-pending,
.agreement-pending:disabled {
  color: #4d554f;
  background: #eceee9;
  cursor: not-allowed;
  opacity: 1;
}

.agreement-pending::after {
  background: #ff6b3d;
  box-shadow: 0 0 0 3px rgba(255, 107, 61, .13);
}

.agreement-pending small {
  color: #a84428;
}

.language-menu {
  position: relative;
  justify-self: end;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 58px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #b8beb7;
  border-radius: 6px;
  background: #fff;
  font-weight: 900;
}

.language-toggle:hover,
.language-menu.open .language-toggle {
  border-color: #171a18;
  box-shadow: 3px 3px 0 #b6ff42;
}

.globe-icon {
  font-family: "Segoe UI Emoji", sans-serif;
  font-size: 16px;
  line-height: 1;
}

.language-toggle b {
  font-size: 10px;
}

.language-options {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  width: 174px;
  padding: 5px;
  border: 1px solid #aeb4ad;
  border-radius: 6px;
  background: #fff;
  box-shadow: 8px 8px 0 rgba(23, 26, 24, .13);
}

.language-options[hidden] {
  display: none;
}

.language-options button {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 4px 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  text-align: left;
}

.language-options button:hover,
.language-options button.active {
  color: #171a18;
  background: #e9fbcf;
}

.viewer-axis {
  bottom: 10px;
  left: 10px;
  width: 80px;
  height: 72px;
  border: 0;
  background: rgba(21, 24, 22, .7);
  backdrop-filter: blur(7px);
}

.viewer-axis .axis-line {
  position: absolute;
  z-index: 0;
  left: 14px;
  bottom: 14px;
  display: block;
  width: 48px;
  height: 1px;
  transform-origin: left center;
  pointer-events: none;
}

.viewer-axis .axis-line-x { background: rgba(255, 107, 61, .65); }
.viewer-axis .axis-line-y { background: rgba(182, 255, 66, .65); transform: rotate(-90deg); }
.viewer-axis .axis-line-z { width: 43px; background: rgba(105, 195, 214, .65); transform: rotate(-42deg); }

.viewer-axis .axis-button {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  place-items: center;
  background: #151816;
  font: 900 9px Consolas, monospace;
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}

.viewer-axis .axis-button:hover,
.viewer-axis .axis-button:focus-visible {
  border-color: #fff;
  outline: 0;
  transform: scale(1.12);
}

.viewer-axis .axis-button.active {
  color: #171a18;
  border-color: #fff;
  background: #fff;
}

.viewer-axis .axis-home { left: 2px; bottom: 2px; color: #d9e0da; }
.viewer-axis .axis-x { right: 0; bottom: 2px; color: #ff6b3d; }
.viewer-axis .axis-y { top: 0; left: 2px; color: #b6ff42; }
.viewer-axis .axis-z { top: 7px; right: 5px; color: #69c3d6; }
.viewer-axis .axis-x.active { background: #ff6b3d; }
.viewer-axis .axis-y.active { background: #b6ff42; }
.viewer-axis .axis-z.active { background: #69c3d6; }

.language-options button b {
  font-size: 10px;
}

.language-options button span {
  font-size: 11px;
  font-weight: 800;
}

.gcd-welcome-loop {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(360px, 1.45fr) minmax(210px, .75fr);
  align-items: center;
  gap: 24px;
  width: min(100% - 32px, 1600px);
  min-height: 132px;
  margin: 18px auto 0;
  padding: 22px 28px;
  overflow: hidden;
  border-top: 1px solid #9ea69e;
  border-bottom: 1px solid #9ea69e;
  background: rgba(231, 233, 228, .78);
  isolation: isolate;
}

.gcd-welcome-loop::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: linear-gradient(rgba(23, 26, 24, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 26, 24, .055) 1px, transparent 1px);
  background-size: 20px 20px;
}

.gcd-welcome-loop::after {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: -12%;
  width: 8%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(182, 255, 66, .38), transparent);
  transform: skewX(-12deg);
  animation: welcome-scan 8s linear infinite;
  pointer-events: none;
}

.welcome-kicker {
  margin: 0;
  color: #59635b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.7;
}

.welcome-assembly {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  align-items: center;
}

.welcome-part {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #afb6ae;
  border-radius: 5px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 4px 4px 0 rgba(23, 26, 24, .08);
}

.welcome-part-gcd {
  transform: translateX(-28px);
  animation: part-gcd-fit 8s cubic-bezier(.2, .8, .2, 1) infinite;
}

.welcome-part-sendyun {
  transform: translateX(28px);
  animation: part-sendyun-fit 8s cubic-bezier(.2, .8, .2, 1) infinite;
}

.welcome-part img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid #bbc1ba;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 47%;
  background: #fff;
}

.welcome-part span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.welcome-part strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.welcome-part small {
  overflow: hidden;
  color: #6d766f;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.welcome-fit {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #536058;
  font: 8px Consolas, monospace;
}

.welcome-fit i {
  height: 1px;
  background: #171a18;
  transform: scaleX(.15);
  animation: fit-line 8s ease infinite;
}

.welcome-fit b {
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid #171a18;
  border-radius: 50%;
  place-items: center;
  background: #b6ff42;
  transform: scale(.72) rotate(-18deg);
  animation: fit-lock 8s ease infinite;
}

.welcome-loop-copy {
  position: relative;
  height: 44px;
  overflow: hidden;
}

.welcome-loop-copy span {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  font-size: clamp(13px, 1.35vw, 18px);
  font-weight: 900;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(12px);
  animation: welcome-copy-cycle 12s ease-in-out infinite;
}

.welcome-loop-copy span:nth-child(2) { animation-delay: 4s; }
.welcome-loop-copy span:nth-child(3) { animation-delay: 8s; }

.welcome-datum {
  position: absolute;
  top: 9px;
  right: 14px;
  display: flex;
  align-items: center;
  color: #69736b;
  font: 8px Consolas, monospace;
}

.welcome-datum span {
  display: grid;
  width: 18px;
  height: 18px;
  border: 1px solid #171a18;
  place-items: center;
  color: #171a18;
  background: #fff;
  font-weight: 900;
}

.welcome-datum i {
  width: 30px;
  height: 1px;
  background: #ff6b3d;
}

.welcome-scale {
  position: absolute;
  right: 20px;
  bottom: 8px;
  left: 20px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  height: 7px;
  border-top: 1px solid rgba(23, 26, 24, .24);
}

.welcome-scale i {
  justify-self: center;
  width: 1px;
  height: 5px;
  background: rgba(23, 26, 24, .38);
}

.gcd-app footer .footer-sendyun {
  width: 28px;
  height: 28px;
  border: 1px solid #c3c8c1;
  border-radius: 6px;
  background: #fff;
}

@keyframes grid-arrive {
  from { opacity: 0; transform: perspective(700px) rotateX(58deg) scale(1.7) translateY(28%); }
  to { opacity: .4; transform: perspective(700px) rotateX(58deg) scale(1.5) translateY(18%); }
}

@keyframes measure-x { to { transform: scaleX(1); } }
@keyframes measure-y { to { transform: scaleY(1); } }
@keyframes project-sequence {
  0% { opacity: 0; transform: translate(-50%, -58%) scale(.94); }
  42%, 70% { opacity: 1; transform: translate(-50%, -58%) scale(1); }
  100% { opacity: 0; transform: translate(-58%, -58%) scale(.98); }
}
@keyframes collaboration-arrive { to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes arrival-exit { to { visibility: hidden; opacity: 0; pointer-events: none; } }
@keyframes welcome-scan {
  0%, 8% { left: -12%; opacity: 0; }
  14% { opacity: 1; }
  62%, 100% { left: 108%; opacity: 0; }
}
@keyframes part-gcd-fit {
  0%, 8% { opacity: .25; transform: translateX(-28px); }
  24%, 76% { opacity: 1; transform: translateX(0); }
  92%, 100% { opacity: .25; transform: translateX(-28px); }
}
@keyframes part-sendyun-fit {
  0%, 12% { opacity: .25; transform: translateX(28px); }
  28%, 76% { opacity: 1; transform: translateX(0); }
  92%, 100% { opacity: .25; transform: translateX(28px); }
}
@keyframes fit-line {
  0%, 18% { transform: scaleX(.15); }
  32%, 76% { transform: scaleX(1); }
  92%, 100% { transform: scaleX(.15); }
}
@keyframes fit-lock {
  0%, 22% { opacity: .3; transform: scale(.72) rotate(-18deg); }
  34%, 76% { opacity: 1; transform: scale(1) rotate(0); }
  92%, 100% { opacity: .3; transform: scale(.72) rotate(18deg); }
}
@keyframes welcome-copy-cycle {
  0%, 5% { opacity: 0; transform: translateY(12px); }
  13%, 25% { opacity: 1; transform: translateY(0); }
  32%, 100% { opacity: 0; transform: translateY(-10px); }
}

@media (max-width: 780px) {
  .app-header {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 10px;
  }

  .header-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
    gap: 6px;
    width: 100%;
  }

  .agreement-entry {
    width: 100%;
    min-width: 0;
  }

  .partner-brand > span,
  .collab-x {
    display: none;
  }

  .partner-brand > img {
    width: 42px;
    height: 42px;
  }

  .arrival-project {
    gap: 13px;
    padding: 15px;
  }

  .arrival-project > img {
    width: 58px;
    height: 58px;
  }

  .arrival-collaboration span {
    gap: 7px;
    font-size: 16px;
  }

  .arrival-collaboration img {
    width: 36px;
    height: 36px;
  }

  .gcd-arrival > p {
    width: calc(100% - 40px);
    text-align: center;
  }

  .language-toggle {
    min-width: 40px;
    width: 40px;
    padding: 0;
  }

  .language-toggle b {
    display: none;
  }

  .gcd-welcome-loop {
    grid-template-columns: 1fr;
    gap: 8px;
    width: calc(100% - 16px);
    min-height: 154px;
    margin-top: 10px;
    padding: 20px 14px 18px;
  }

  .welcome-kicker {
    padding-right: 74px;
    font-size: 7px;
  }

  .welcome-assembly {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  }

  .welcome-part {
    gap: 6px;
    padding: 6px;
  }

  .welcome-part img {
    width: 32px;
    height: 32px;
  }

  .welcome-part strong {
    font-size: 9px;
  }

  .welcome-part small {
    font-size: 6px;
  }

  .welcome-fit b {
    width: 22px;
    height: 22px;
    font-size: 6px;
  }

  .welcome-loop-copy {
    height: 28px;
    text-align: center;
  }

  .welcome-loop-copy span {
    justify-items: center;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gcd-arrival {
    animation-delay: 1.2s;
  }

  .arrival-grid,
  .arrival-grid::before,
  .arrival-grid::after,
  .arrival-project,
  .arrival-collaboration,
  .gcd-arrival > p {
    animation-duration: .01ms;
    animation-delay: 0s;
  }

  .gcd-welcome-loop::after,
  .welcome-part,
  .welcome-fit i,
  .welcome-fit b,
  .welcome-loop-copy span {
    animation-duration: .01ms;
    animation-delay: 0s;
  }

  .welcome-loop-copy span:first-child {
    opacity: 1;
    transform: none;
  }
}
