html.trip-gate-pending body > :not(#trip-access-gate):not(noscript),
html.trip-gate-locked body > :not(#trip-access-gate):not(noscript) {
  visibility: hidden !important;
}

html.trip-gate-pending,
html.trip-gate-locked,
body.trip-gate-frozen {
  overflow: hidden !important;
  overscroll-behavior: none;
}

#trip-access-gate,
#trip-access-gate * {
  box-sizing: border-box;
}

#trip-access-gate {
  --tg-ink: #030606;
  --tg-cyan: #74fff2;
  --tg-blue: #4e8cff;
  --tg-gold: #ffc36f;
  --tg-pink: #ff62c0;
  --tg-paper: #f7f1e5;
  --tg-line: rgba(255, 255, 255, 0.17);
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: block;
  overflow: hidden;
  isolation: isolate;
  visibility: visible !important;
  background: var(--tg-ink);
  color: var(--tg-paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 360ms ease 2.68s;
}

#trip-access-gate::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(circle at 27% 44%, rgba(60, 252, 225, 0.25), transparent 24%),
    radial-gradient(circle at 76% 48%, rgba(255, 174, 88, 0.18), transparent 28%),
    conic-gradient(from 210deg at 50% 50%, #020707, #0a1312, #05040a, #020707);
  animation: trip-gate-breathe 9s ease-in-out infinite alternate;
  transition: opacity 420ms ease 2.55s;
}

.trip-gate__panel {
  position: absolute;
  inset-block: 0;
  z-index: 20;
  width: 50.5%;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(116, 255, 242, 0.06)),
    #030606;
  transition: transform 820ms cubic-bezier(0.76, 0, 0.24, 1) 2.34s;
}

.trip-gate__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
}

.trip-gate__panel--left {
  left: 0;
  border-right: 1px solid rgba(116, 255, 242, 0.25);
}

.trip-gate__panel--right {
  right: 0;
  border-right: 1px solid rgba(255, 195, 111, 0.25);
}

.trip-gate__stars {
  position: absolute;
  inset: -20%;
  z-index: 21;
  pointer-events: none;
  opacity: 0.72;
  background-image:
    radial-gradient(circle, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle, var(--tg-cyan) 0 1px, transparent 1.5px),
    radial-gradient(circle, var(--tg-gold) 0 1px, transparent 1.5px);
  background-position: 0 0, 37px 61px, 113px 17px;
  background-size: 137px 137px, 181px 181px, 223px 223px;
  animation: trip-gate-stars 48s linear infinite;
}

.trip-gate {
  position: relative;
  z-index: 30;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  overflow: hidden;
}

.trip-gate__header {
  position: absolute;
  inset: clamp(18px, 3vw, 42px) clamp(20px, 4vw, 70px) auto;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--tg-line);
  color: rgba(247, 241, 229, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.trip-gate__header span:nth-child(2) { color: var(--tg-paper); }
.trip-gate__header span:last-child { text-align: right; }

.trip-gate__stage {
  --trip-shift-x: 0px;
  --trip-shift-y: 0px;
  position: absolute;
  left: clamp(-80px, 2vw, 30px);
  top: 50%;
  z-index: 3;
  width: min(57vw, 820px);
  aspect-ratio: 1;
  transform: translate3d(var(--trip-shift-x), calc(-48% + var(--trip-shift-y)), 0);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: trip-gate-stage-in 1.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.trip-gate__portrait-shell {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(43vw, 570px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: drop-shadow(0 40px 90px rgba(0, 0, 0, 0.65));
}

.trip-gate__portrait-shell::before,
.trip-gate__portrait-shell::after {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: 1;
  border: 1px solid rgba(116, 255, 242, 0.34);
  border-radius: 50%;
  box-shadow: 0 0 42px rgba(116, 255, 242, 0.17), inset 0 0 42px rgba(255, 195, 111, 0.1);
}

.trip-gate__portrait {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  filter: saturate(0.92) contrast(1.12);
  box-shadow: inset 0 0 0 9px rgba(3, 6, 6, 0.58), 0 0 80px rgba(116, 255, 242, 0.15);
}

.trip-gate__halo {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(116, 255, 242, 0.52), transparent 38%, rgba(255, 195, 111, 0.46), transparent 73%);
  opacity: 0.46;
  filter: blur(26px);
  animation: trip-gate-spin 11s linear infinite;
}

.trip-gate__crown {
  position: absolute;
  left: 50%;
  top: -7%;
  z-index: 6;
  width: 43%;
  height: 26%;
  transform: translateX(-50%) rotate(-5deg);
  transform-origin: 50% 100%;
  clip-path: polygon(5% 85%, 0 18%, 27% 54%, 49% 0, 72% 54%, 100% 16%, 94% 85%);
  background: linear-gradient(135deg, #fff4b4 0%, #ffa646 30%, #fffbd9 53%, #bf651e 100%);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 18px rgba(255, 195, 111, 0.44));
  animation: trip-gate-crown 4.2s ease-in-out infinite;
}

.trip-gate__crown::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 0;
  height: 24%;
  background: repeating-linear-gradient(90deg, var(--tg-cyan) 0 10%, var(--tg-pink) 10% 20%, var(--tg-gold) 20% 30%);
  box-shadow: 0 0 16px rgba(116, 255, 242, 0.6);
}

.trip-gate__crown i {
  position: absolute;
  z-index: 2;
  bottom: 3%;
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 12px currentColor;
}
.trip-gate__crown i:nth-child(1) { left: 14%; color: var(--tg-cyan); }
.trip-gate__crown i:nth-child(2) { left: 32%; color: var(--tg-pink); }
.trip-gate__crown i:nth-child(3) { left: 48%; color: var(--tg-gold); }
.trip-gate__crown i:nth-child(4) { left: 65%; color: var(--tg-cyan); }
.trip-gate__crown i:nth-child(5) { left: 82%; color: var(--tg-pink); }

.trip-gate__orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.trip-gate__orbit--outer {
  width: 92%;
  height: 66%;
  border-color: rgba(116, 255, 242, 0.26);
  animation: trip-gate-orbit 18s linear infinite;
}

.trip-gate__satellite {
  position: absolute;
  display: grid;
  min-width: 62px;
  min-height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(3, 6, 6, 0.84);
  box-shadow: 0 0 24px rgba(116, 255, 242, 0.15);
  color: var(--tg-paper);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.trip-gate__satellite--passport { left: 10%; top: -5%; transform: rotate(10deg); }
.trip-gate__satellite--ball { right: 4%; top: 13%; min-width: 38px; min-height: 38px; border-radius: 50%; color: #c8ff3d; font-size: 22px; }
.trip-gate__satellite--bone { left: -1%; bottom: 7%; transform: rotate(45deg); color: var(--tg-gold); }
.trip-gate__satellite--route { right: 3%; bottom: -1%; color: var(--tg-cyan); }

.trip-gate__console {
  position: absolute;
  right: clamp(24px, 6vw, 100px);
  top: 50%;
  z-index: 9;
  width: min(39vw, 560px);
  transform: translateY(-43%);
  animation: trip-gate-console-in 950ms cubic-bezier(0.16, 1, 0.3, 1) 160ms both;
}

.trip-gate__eyebrow,
.trip-gate__fineprint {
  margin: 0;
  color: var(--tg-cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.trip-gate__console h1 {
  margin: 16px 0 18px;
  color: var(--tg-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 6vw, 96px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.84;
}

.trip-gate__console h1 em {
  color: transparent;
  font-weight: 400;
  -webkit-text-stroke: 1px rgba(247, 241, 229, 0.65);
}

.trip-gate__copy {
  margin: 0 0 34px;
  color: rgba(247, 241, 229, 0.62);
  font-size: clamp(15px, 1.3vw, 19px);
}

.trip-gate__form {
  padding: 20px;
  border: 1px solid var(--tg-line);
  background: rgba(4, 9, 9, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(20px);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.trip-gate__form label {
  display: block;
  margin-bottom: 10px;
  color: rgba(247, 241, 229, 0.58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.trip-gate__field {
  display: grid;
  grid-template-columns: 1fr auto auto;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  background: rgba(0, 0, 0, 0.35);
}

#trip-access-gate .trip-gate__field input {
  min-width: 0;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font: 600 22px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.22em;
}

#trip-access-gate .trip-gate__field input:focus-visible {
  box-shadow: inset 0 0 0 2px var(--tg-cyan);
}

#trip-access-gate .trip-gate__field button {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--tg-paper);
  color: var(--tg-ink);
  cursor: pointer;
  font: 800 10px/1 ui-sans-serif, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

#trip-access-gate .trip-gate__field button:hover,
#trip-access-gate .trip-gate__field button:focus-visible {
  background: var(--tg-cyan);
  outline: none;
}

#trip-access-gate .trip-gate__field button:disabled { cursor: wait; opacity: 0.6; }

.trip-gate__status {
  min-height: 18px;
  margin: 12px 0 4px;
  color: var(--tg-gold);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.trip-gate__fineprint { margin-top: 15px; color: rgba(247, 241, 229, 0.3); font-size: 8px; }

.trip-gate__success {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
  opacity: 0;
}

.trip-gate__success span,
.trip-gate__success small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.trip-gate__success span { color: var(--tg-cyan); }
.trip-gate__success small { margin-top: 24px; color: rgba(255, 255, 255, 0.45); }
.trip-gate__success strong {
  position: relative;
  z-index: 2;
  display: grid;
  color: white;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(72px, 14vw, 220px);
  letter-spacing: -0.045em;
  line-height: 0.75;
  text-shadow: 8px 8px 0 var(--tg-pink), -8px -8px 0 var(--tg-blue), 0 0 80px rgba(116, 255, 242, 0.8);
}

.trip-gate__word {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 38;
  color: white;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 52vw;
  line-height: 0.7;
  letter-spacing: -0.09em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.08) rotate(-9deg);
  text-shadow: 18px 18px 0 var(--tg-pink), -18px -18px 0 var(--tg-blue);
}

.trip-gate__shockwave {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 41;
  width: 20vmin;
  aspect-ratio: 1;
  border: 6px solid white;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.1);
  box-shadow: 0 0 20px white, 0 0 70px var(--tg-cyan), 0 0 130px var(--tg-pink);
  pointer-events: none;
}

.trip-gate__clones {
  position: absolute;
  inset: 0;
  z-index: 39;
  pointer-events: none;
}

.trip-gate__clones i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(70px, 10vw, 180px);
  aspect-ratio: 2 / 3;
  background: url("/assets/images/trips-gate/moo-portal-cutout.webp") center / contain no-repeat;
  opacity: 0;
  filter: drop-shadow(0 0 20px var(--tg-cyan));
  transform: translate(-50%, -50%) scale(0.08);
}

.is-denied .trip-gate__portrait-shell { animation: trip-gate-dog-no 480ms cubic-bezier(0.36, 0.07, 0.19, 0.97); }
.is-denied .trip-gate__console { animation: trip-gate-denied 420ms cubic-bezier(0.36, 0.07, 0.19, 0.97); }
.is-denied .trip-gate__form { border-color: rgba(255, 90, 100, 0.75); box-shadow: 0 0 45px rgba(255, 49, 80, 0.2); }

.is-unlocking .trip-gate__console,
.is-unlocking .trip-gate__header { animation: trip-gate-console-out 180ms ease forwards; }
.is-unlocking#trip-access-gate { background-color: transparent; }
.is-unlocking#trip-access-gate::before { opacity: 0; }
.is-unlocking .trip-gate__panel--left { transform: translateX(-105%); }
.is-unlocking .trip-gate__panel--right { transform: translateX(105%); }

@keyframes trip-gate-breathe { to { transform: rotate(5deg) scale(1.06); } }
@keyframes trip-gate-stars { to { transform: translate3d(-137px, -137px, 0); } }
@keyframes trip-gate-spin { to { transform: rotate(360deg); } }
@keyframes trip-gate-orbit { to { transform: translate(-50%, -50%) rotate(348deg); } }
@keyframes trip-gate-crown { 50% { transform: translateX(-50%) translateY(-7px) rotate(2deg); } }
@keyframes trip-gate-denied { 20%, 60% { transform: translateY(-43%) translateX(-10px); } 40%, 80% { transform: translateY(-43%) translateX(10px); } }
@keyframes trip-gate-dog-no { 25% { transform: translate(-53%, -50%) rotate(-4deg); } 75% { transform: translate(-47%, -50%) rotate(4deg); } }
@keyframes trip-gate-console-out { to { opacity: 0; transform: translateY(-43%) scale(0.96); } }
@keyframes trip-gate-shockwave { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.1); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(18); border-width: 1px; } }
@keyframes trip-gate-clone-flight { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--clone) * 45deg)) translateY(0) scale(0.08); } 28% { opacity: 0.85; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--clone) * 45deg)) translateY(-72vh) scale(1.45); } }
@keyframes trip-gate-hyperspace { 0% { opacity: 0.7; filter: blur(0); } 70% { opacity: 1; transform: scale(2.1); filter: blur(2px) brightness(2); } 100% { opacity: 0; transform: scale(4); filter: blur(12px); } }

@media (max-width: 820px) {
  .trip-gate__header { grid-template-columns: 1fr auto; }
  .trip-gate__header span:nth-child(2) { display: none; }
  .trip-gate__stage { left: 50%; top: 35%; width: min(92vw, 560px); transform: translate3d(calc(-50% + var(--trip-shift-x)), calc(-50% + var(--trip-shift-y)), 0); }
  .trip-gate__portrait-shell { width: min(64vw, 370px); }
  .trip-gate__console { left: 22px; right: 22px; top: auto; bottom: max(44px, env(safe-area-inset-bottom)); width: auto; transform: none; text-align: center; }
  .trip-gate__console h1 { margin: 7px 0 9px; font-size: clamp(42px, 12vw, 67px); line-height: 0.86; }
  .trip-gate__copy { margin-bottom: 14px; font-size: 14px; }
  .trip-gate__form { padding: 12px; text-align: left; }
  .trip-gate__field { min-height: 52px; }
  #trip-access-gate .trip-gate__field button { gap: 8px; padding: 0 14px; }
  .trip-gate__fineprint { display: none; }
  .trip-gate__status { margin: 7px 0 0; }
  .trip-gate__success strong { font-size: clamp(52px, 16vw, 92px); }
  .trip-gate__success em { font-size: 8px; letter-spacing: 0.26em; }
  .trip-gate__telemetry { display: none; }
  .trip-gate__specimen-label { left: 1%; bottom: 14%; }
  .trip-gate__ticker { padding-block: 8px; }
}

@media (max-width: 470px) {
  .trip-gate__header span:last-child { display: none; }
  .trip-gate__header { grid-template-columns: 1fr; }
  .trip-gate__stage { top: 31%; }
  .trip-gate__portrait-shell { width: min(67vw, 315px); }
  .trip-gate__orbit--outer { width: 100%; }
  .trip-gate__console h1 { font-size: clamp(39px, 12vw, 57px); }
  .trip-gate__field { grid-template-columns: 1fr auto 54px; }
  .trip-gate__key-lights { gap: 4px; padding-right: 10px; }
  .trip-gate__key-lights i { width: 5px; height: 5px; }
  .trip-gate__form-head { gap: 8px; }
  .trip-gate__signal-label { font-size: 7px; }
  .trip-gate__meter { margin-top: 10px; }
  .trip-gate__specimen-label { display: none; }
  #trip-access-gate .trip-gate__field button { justify-content: center; padding: 0; }
  #trip-access-gate .trip-gate__field button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #trip-access-gate .trip-gate__field button b { font-size: 18px; }
}

.trip-gate-noscript {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-content: center;
  padding: 32px;
  background: #030606;
  color: #f7f1e5;
  text-align: center;
  font: 700 16px/1.5 ui-sans-serif, sans-serif;
  letter-spacing: 0.05em;
  visibility: visible !important;
}

#trip-access-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.trip-gate__stars--two {
  z-index: 22;
  opacity: 0.24;
  transform: rotate(23deg) scale(1.1);
  animation-duration: 68s;
  animation-direction: reverse;
}

.trip-gate__grid {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -38%;
  z-index: 1;
  height: 74%;
  opacity: 0.2;
  transform: perspective(420px) rotateX(67deg);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(116, 255, 242, 0.36) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 255, 242, 0.36) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, black 35%, black);
  animation: trip-gate-grid-drive 4s linear infinite;
}

.trip-gate__scan {
  position: absolute;
  inset: 0;
  z-index: 32;
  pointer-events: none;
  opacity: 0.34;
  background: linear-gradient(to bottom, transparent 49.5%, rgba(116, 255, 242, 0.3) 50%, transparent 50.5%);
  background-size: 100% 9px;
  mix-blend-mode: screen;
}

.trip-gate__ticker {
  position: absolute;
  inset: auto 0 0;
  z-index: 44;
  overflow: hidden;
  padding: 10px 0 9px;
  border-top: 1px solid rgba(116, 255, 242, 0.24);
  background: rgba(3, 6, 6, 0.72);
  color: rgba(247, 241, 229, 0.48);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

.trip-gate__ticker div {
  display: flex;
  width: max-content;
  gap: 28px;
  align-items: center;
  animation: trip-gate-ticker 25s linear infinite;
}

.trip-gate__ticker b { color: var(--tg-cyan); font-size: 11px; }

.trip-gate__portal-rings {
  position: absolute;
  inset: 2%;
  z-index: 0;
  border-radius: 50%;
  filter: drop-shadow(0 0 16px rgba(116, 255, 242, 0.26));
}

.trip-gate__portal-rings i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(116, 255, 242, 0.22);
  border-radius: 50%;
  clip-path: polygon(0 0, 46% 0, 55% 20%, 100% 20%, 100% 100%, 54% 100%, 46% 80%, 0 80%);
  animation: trip-gate-ring 12s linear infinite;
}

.trip-gate__portal-rings i:nth-child(1) { inset: 0; }
.trip-gate__portal-rings i:nth-child(2) { inset: 7%; animation-direction: reverse; animation-duration: 9s; border-color: rgba(255, 195, 111, 0.28); }
.trip-gate__portal-rings i:nth-child(3) { inset: 14%; animation-duration: 15s; }
.trip-gate__portal-rings i:nth-child(4) { inset: 21%; animation-direction: reverse; animation-duration: 7s; border-color: rgba(255, 98, 192, 0.22); }

.trip-gate__portrait-shell::before {
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(116, 255, 242, 0.78) 8% 10%, transparent 10% 37%, rgba(255, 195, 111, 0.72) 37% 39%, transparent 39% 72%, rgba(255, 98, 192, 0.6) 72% 74%, transparent 74%);
}

.trip-gate__portrait-shell::after {
  inset: -29px;
  border-style: dashed;
  border-color: rgba(255, 195, 111, 0.28);
  animation: trip-gate-spin 26s linear infinite;
}

.trip-gate__specimen-label {
  position: absolute;
  left: 4%;
  bottom: 10%;
  z-index: 14;
  display: grid;
  gap: 1px;
  padding-left: 42px;
  color: rgba(247, 241, 229, 0.5);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.trip-gate__specimen-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--tg-cyan);
  box-shadow: 0 0 10px var(--tg-cyan);
}

.trip-gate__specimen-label strong { color: white; font-size: 16px; letter-spacing: 0.08em; }
.trip-gate__specimen-label span { color: var(--tg-cyan); }

.trip-gate__telemetry {
  position: absolute;
  right: clamp(24px, 6vw, 100px);
  bottom: 58px;
  z-index: 10;
  display: flex;
  gap: clamp(20px, 3vw, 48px);
}

.trip-gate__telemetry p { margin: 0; }
.trip-gate__telemetry span,
.trip-gate__telemetry b { display: block; font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; }
.trip-gate__telemetry span { margin-bottom: 5px; color: rgba(247, 241, 229, 0.36); }
.trip-gate__telemetry b { color: var(--tg-paper); font-weight: 800; }
.trip-gate__telemetry .trip-gate__live { color: #bdff57; }
.trip-gate__telemetry .trip-gate__live::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; animation: trip-gate-blink 1s steps(2) infinite; }

.trip-gate__eyebrow span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #bdff57;
  box-shadow: 0 0 12px #bdff57;
  animation: trip-gate-blink 1.3s steps(2) infinite;
}

.has-signal .trip-gate__form { border-color: rgba(116, 255, 242, 0.42); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36), 0 0 50px rgba(116, 255, 242, 0.08); }
.has-full-signal .trip-gate__form { border-color: rgba(189, 255, 87, 0.65); box-shadow: 0 0 50px rgba(189, 255, 87, 0.12); }
.trip-gate__form-head { display: flex; justify-content: space-between; gap: 20px; }
.trip-gate__signal-label { color: rgba(247, 241, 229, 0.32); font-size: 8px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.has-signal .trip-gate__signal-label { color: var(--tg-cyan); }
.has-full-signal .trip-gate__signal-label { color: #bdff57; text-shadow: 0 0 12px rgba(189, 255, 87, 0.5); }

.trip-gate__key-lights { display: flex; align-items: center; gap: 6px; padding-right: 17px; }
.trip-gate__key-lights i { width: 6px; height: 6px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; transition: 180ms ease; }
.trip-gate__key-lights i.is-lit { border-color: var(--tg-cyan); background: var(--tg-cyan); box-shadow: 0 0 12px var(--tg-cyan); }
.has-full-signal .trip-gate__key-lights i.is-lit { border-color: #bdff57; background: #bdff57; box-shadow: 0 0 12px #bdff57; }

.trip-gate__meter {
  --trip-charge: 0%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  margin-top: 13px;
  padding-top: 11px;
  color: rgba(247, 241, 229, 0.32);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.trip-gate__meter::before,
.trip-gate__meter i { position: absolute; left: 0; top: 0; height: 2px; }
.trip-gate__meter::before { content: ""; right: 0; background: rgba(255, 255, 255, 0.09); }
.trip-gate__meter i { width: var(--trip-charge); background: linear-gradient(90deg, var(--tg-blue), var(--tg-cyan), #bdff57); box-shadow: 0 0 12px var(--tg-cyan); transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1); }
.trip-gate__meter b { color: var(--tg-paper); }

.trip-gate__denied-stamp {
  position: absolute;
  right: 6%;
  bottom: 15%;
  z-index: 12;
  padding: 8px 16px;
  border: 4px double #ff5269;
  color: #ff5269;
  font: 900 28px/0.8 Impact, sans-serif;
  letter-spacing: 0.06em;
  text-align: center;
  transform: rotate(-12deg) scale(2.6);
  opacity: 0;
  filter: drop-shadow(0 0 14px rgba(255, 82, 105, 0.45));
  pointer-events: none;
}

.trip-gate__denied-stamp span { font-size: 13px; letter-spacing: 0.18em; }

.trip-gate__success strong i { font-style: normal; }
.trip-gate__success strong i:last-child { color: transparent; -webkit-text-stroke: 2px white; }
.trip-gate__success em { margin-top: 22px; color: var(--tg-gold); font: 800 10px/1 ui-sans-serif, sans-serif; letter-spacing: 0.42em; text-transform: uppercase; }

.trip-gate__success-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(70vmin, 720px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(116, 255, 242, 0.5);
  border-radius: 50%;
  opacity: 0.45;
}

.trip-gate__success-seal::before,
.trip-gate__success-seal::after { content: ""; position: absolute; inset: 9%; border: 1px dashed rgba(255, 195, 111, 0.6); border-radius: 50%; }
.trip-gate__success-seal::after { inset: 20%; border-style: solid; border-color: rgba(255, 98, 192, 0.5); }
.trip-gate__success-seal img { width: 100%; height: 100%; opacity: 0.5; filter: drop-shadow(0 0 35px var(--tg-cyan)); }

.trip-gate__flash { position: absolute; inset: 0; z-index: 43; pointer-events: none; opacity: 0; background: white; mix-blend-mode: screen; }
.is-denied .trip-gate__denied-stamp { animation: trip-gate-stamp 900ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.is-denied .trip-gate__scan { background-color: rgba(255, 30, 60, 0.12); }

@keyframes trip-gate-grid-drive { to { background-position: 0 64px, 0 64px; } }
@keyframes trip-gate-ticker { to { transform: translateX(-50%); } }
@keyframes trip-gate-stage-in { from { opacity: 0; filter: blur(16px); transform: translate3d(calc(var(--trip-shift-x) - 70px), calc(-48% + var(--trip-shift-y)), 0) scale(0.88); } }
@keyframes trip-gate-console-in { from { opacity: 0; filter: blur(12px); transform: translateY(-37%) translateX(60px); } }
@keyframes trip-gate-ring { to { transform: rotate(360deg); } }
@keyframes trip-gate-blink { 50% { opacity: 0.25; } }
@keyframes trip-gate-stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(2.6); } 38%, 72% { opacity: 1; transform: rotate(-12deg) scale(1); } 100% { opacity: 0; transform: rotate(-12deg) scale(0.92); } }

/* Choreographed portal: scan, confirm, ascend, then open the kennel doors. */
.trip-gate__sniff-beam {
  --trip-cursor-x: 50vw;
  --trip-cursor-y: 50vh;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 310px;
  height: 310px;
  pointer-events: none;
  opacity: 0.42;
  background: radial-gradient(circle, rgba(116, 255, 242, 0.14), transparent 72%);
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--trip-cursor-x) - 50%), calc(var(--trip-cursor-y) - 50%), 0);
  transition: opacity 220ms ease;
  will-change: transform;
}

.trip-gate__sniff-beam::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, white, var(--tg-cyan) 38%, transparent 72%);
  transform: translate(-50%, -50%);
}

.trip-gate__background-type {
  position: absolute;
  right: -2vw;
  top: 50%;
  z-index: 1;
  color: transparent;
  font: 900 clamp(90px, 13vw, 230px)/0.72 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.05;
  transform: translateY(-50%) rotate(-90deg) translateY(48%);
  -webkit-text-stroke: 1px rgba(116, 255, 242, 0.8);
  pointer-events: none;
}

.trip-gate__iris {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 42;
  width: 24vmin;
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.trip-gate__iris i {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--tg-cyan);
  box-shadow: 0 0 24px rgba(116, 255, 242, 0.8), inset 0 0 24px rgba(116, 255, 242, 0.4);
}

.trip-gate__iris i:nth-child(1) { inset: 0; border-style: dashed; }
.trip-gate__iris i:nth-child(2) { inset: 17%; border-color: var(--tg-gold); }
.trip-gate__iris i:nth-child(3) { inset: 34%; border-width: 4px; border-color: white; }

.trip-gate__ritual {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 54;
  width: min(88vw, 620px);
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.trip-gate__ritual span {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  color: white;
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0;
}

.trip-gate__ritual b { margin-right: 16px; color: var(--tg-cyan); font-size: 0.72em; }

.trip-gate__ascendant {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 29;
  width: min(34vw, 440px);
  height: min(84vh, 660px);
  background: url("/assets/images/trips-gate/moo-portal-cutout.webp") center / contain no-repeat;
  opacity: 0;
  transform: translate(-50%, 35%) scale(0.18) rotate(-7deg);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 38px rgba(116, 255, 242, 0.62));
  pointer-events: none;
}

.trip-gate__pawstorm {
  position: absolute;
  inset: 0;
  z-index: 28;
  overflow: hidden;
  pointer-events: none;
}

.trip-gate__pawstorm i {
  position: absolute;
  left: calc(4% + var(--paw) * 8%);
  bottom: -18%;
  width: clamp(38px, 6vw, 92px);
  aspect-ratio: 1;
  background: url("/assets/images/trips-gate/moo-paw-constellation.svg") center / contain no-repeat;
  opacity: 0;
  filter: drop-shadow(0 0 16px var(--tg-cyan));
}

.is-unlocking .trip-gate__sniff-beam,
.is-unlocking .trip-gate__background-type,
.is-unlocking .trip-gate__ticker { opacity: 0; transition: opacity 180ms ease; }
.is-unlocking .trip-gate__stage { animation: trip-gate-stage-handoff 480ms ease 520ms forwards; }
.is-unlocking .trip-gate__ritual span:nth-child(1) { animation: trip-gate-ritual-line 620ms ease 80ms both; }
.is-unlocking .trip-gate__ritual span:nth-child(2) { animation: trip-gate-ritual-line 620ms ease 410ms both; }
.is-unlocking .trip-gate__ritual span:nth-child(3) { animation: trip-gate-ritual-line 720ms ease 740ms both; }
.is-unlocking .trip-gate__iris { animation: trip-gate-iris-open 2.25s cubic-bezier(0.16, 1, 0.3, 1) 560ms both; }
.is-unlocking .trip-gate__iris i:nth-child(1) { animation: trip-gate-spin 1.5s linear infinite; }
.is-unlocking .trip-gate__iris i:nth-child(2) { animation: trip-gate-spin 1s linear infinite reverse; }
.is-unlocking .trip-gate__ascendant { animation: trip-gate-ascend 2.25s cubic-bezier(0.16, 1, 0.3, 1) 650ms both; }
.is-unlocking .trip-gate__pawstorm i { animation: trip-gate-paw-flight 1.7s cubic-bezier(0.12, 0.72, 0.28, 1) calc(0.78s + var(--paw) * 0.055s) both; }
.is-unlocking .trip-gate__success { padding-inline: 24px; animation: trip-gate-success-choreographed 2.05s cubic-bezier(0.16, 1, 0.3, 1) 1.12s both; }
.is-unlocking .trip-gate__success-seal { animation: trip-gate-seal-choreographed 2.3s cubic-bezier(0.16, 1, 0.3, 1) 730ms both; }
.is-unlocking .trip-gate__word { z-index: 28; animation: trip-gate-word-choreographed 920ms cubic-bezier(0.15, 1.2, 0.32, 1) 1.34s both; }
.is-unlocking .trip-gate__shockwave { animation: trip-gate-shockwave 1.1s ease-out 1.52s both; }
.is-unlocking .trip-gate__flash { animation: trip-gate-flash-choreographed 740ms ease 880ms both; }
.is-unlocking .trip-gate__clones i { animation: trip-gate-clone-flight 1.35s cubic-bezier(0.1, 0.7, 0.3, 1) calc(1.12s + var(--clone) * 0.07s) both; }
.is-unlocking .trip-gate__stars { animation: trip-gate-hyperspace 1.65s ease-in 1s both; }
.is-unlocking .trip-gate__clones { z-index: 27; }
.is-unlocking .trip-gate__success-kicker { max-width: min(86vw, 720px); justify-self: center; line-height: 1.6; }

@keyframes trip-gate-ritual-line {
  0% { opacity: 0; transform: translateY(14px); filter: blur(7px); }
  22%, 68% { opacity: 1; transform: translateY(0); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-12px); filter: blur(5px); }
}

@keyframes trip-gate-stage-handoff {
  to { opacity: 0; transform: translate3d(var(--trip-shift-x), calc(-48% + var(--trip-shift-y)), 0) scale(1.08); filter: blur(12px); }
}

@keyframes trip-gate-iris-open {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.08) rotate(-50deg); }
  24%, 68% { opacity: 0.92; transform: translate(-50%, -50%) scale(1) rotate(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(8) rotate(70deg); filter: blur(5px); }
}

@keyframes trip-gate-ascend {
  0% { opacity: 0; transform: translate(-50%, 35%) scale(0.18) rotate(-7deg); }
  22% { opacity: 1; }
  50%, 72% { opacity: 1; transform: translate(-50%, -46%) scale(1) rotate(0); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 55px rgba(116, 255, 242, 0.85)); }
  100% { opacity: 0; transform: translate(-50%, -64%) scale(2.9) rotate(4deg); filter: blur(7px) brightness(1.7); }
}

@keyframes trip-gate-paw-flight {
  0% { opacity: 0; transform: translateY(0) scale(0.18) rotate(calc(var(--paw) * 29deg)); }
  26%, 68% { opacity: 0.66; }
  100% { opacity: 0; transform: translateY(-118vh) translateX(calc((var(--paw) - 6) * 2vw)) scale(1.2) rotate(calc(var(--paw) * 70deg)); }
}

@keyframes trip-gate-success-choreographed {
  0% { opacity: 0; transform: scale(1.18); filter: blur(14px); }
  20%, 70% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.34); filter: blur(7px); }
}

@keyframes trip-gate-seal-choreographed {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(-80deg); }
  30%, 72% { opacity: 0.2; transform: translate(-50%, -50%) scale(1) rotate(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.9) rotate(90deg); }
}

@keyframes trip-gate-word-choreographed {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.1) rotate(-7deg); }
  44%, 68% { opacity: 0.32; transform: translate(-50%, -50%) scale(0.82) rotate(-2deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5) rotate(2deg); filter: blur(10px); }
}

@keyframes trip-gate-flash-choreographed {
  0%, 100% { opacity: 0; }
  18% { opacity: 0.34; }
  36% { opacity: 0.04; }
  50% { opacity: 0.16; }
}

@media (max-width: 820px) {
  .trip-gate__background-type { display: none; }
  .trip-gate__sniff-beam { opacity: 0.25; }
  .trip-gate__ascendant { width: min(68vw, 390px); height: min(62vh, 560px); }
  .trip-gate__ritual { top: 45%; }
  .trip-gate__ritual span { font-size: 9px; letter-spacing: 0.18em; }
  .trip-gate__pawstorm i { width: clamp(34px, 13vw, 64px); }
  .trip-gate__success-seal { width: min(92vw, 560px); }
  @keyframes trip-gate-stage-handoff {
    to { opacity: 0; transform: translate3d(calc(-50% + var(--trip-shift-x)), calc(-50% + var(--trip-shift-y)), 0) scale(1.08); filter: blur(12px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  #trip-access-gate *,
  #trip-access-gate *::before,
  #trip-access-gate *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 180ms !important;
    transition-delay: 0ms !important;
  }
  .trip-gate__sniff-beam { display: none; }
}
