/* Matrix pinball loading console. Visibility and progress remain owned by Stimulus. */
.pb-matrix-loader {
  --pb-phosphor: #9bff9b;
  --pb-phosphor-bright: #e0ffce;
  --pb-phosphor-dim: #589b6a;
  --pb-matrix-line: #376a49;
  --pb-matrix-ink: #050d09;
  font-family: "Courier New", monospace;
  color: var(--pb-phosphor);
}

.pb-matrix-loader *,
.pb-matrix-loader *::before,
.pb-matrix-loader *::after { box-sizing: border-box; }
.pb-matrix-loader .hidden { display: none !important; }

.pb-matrix-screen {
  position: fixed;
  inset: 0;
  z-index: 2147483200;
  display: grid;
  place-items: center;
  padding: 22px 18px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #143d1f52 0, #01070545 50%, #010302c4 100%);
  isolation: isolate;
}

.pb-matrix-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .15;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #050905 3px 4px);
}

.pb-matrix-rain {
  position: absolute;
  inset: -25% 0 0;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  justify-items: center;
  overflow: hidden;
  opacity: .55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 72%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 72%, transparent);
}

.pb-matrix-rain > span {
  display: block;
  align-self: start;
  white-space: pre;
  font: 14px/1.35 "Courier New", monospace;
  color: #4e985e;
  text-shadow: 0 0 6px #469e6380;
  background: linear-gradient(180deg, #224b30 4%, #6cac75 78%, #d4ffd5 98%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pb-matrix-code-fall 15s linear infinite;
  animation-play-state: paused;
}

.pb-matrix-rain > span:nth-child(3n) { animation-duration: 18s; animation-delay: -11s; }
.pb-matrix-rain > span:nth-child(3n + 1) { animation-duration: 14s; animation-delay: -5s; }
.pb-matrix-rain > span:nth-child(4n) { animation-duration: 22s; animation-delay: -17s; opacity: .6; }
.pb-matrix-rain > span:nth-child(5n) { animation-delay: -9s; }
.pb-matrix-screen:not(.hidden) .pb-matrix-rain > span { animation-play-state: running; }

.pb-matrix-cabinet {
  position: relative;
  z-index: 1;
  width: min(100%, 570px);
  padding: 8px;
  border: 1px solid #40734d;
  border-radius: 4px 4px 14px 14px;
  background: #030805f5;
  box-shadow: 0 0 0 4px #010503a6, 0 0 0 5px #173c25, 0 24px 90px #000a, 0 0 70px #3d9c3a15;
}

.pb-matrix-cabinet::before,
.pb-matrix-cabinet::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--pb-phosphor);
}
.pb-matrix-cabinet::before { left: -5px; border-left: 2px solid var(--pb-phosphor); }
.pb-matrix-cabinet::after { right: -5px; border-right: 2px solid var(--pb-phosphor); }

.pb-matrix-marquee {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 14px;
}
.pb-matrix-brand {
  color: var(--pb-phosphor-bright);
  font: 900 clamp(24px, 6vw, 38px)/1 "Courier New", monospace;
  letter-spacing: -.09em;
  text-shadow: 0 0 18px #9bff9b40;
}
.pb-matrix-brand-dot { color: #82df75; }
.pb-matrix-edition { font-size: 9px; letter-spacing: .15em; text-align: right; line-height: 1.5; color: #93bb96; }

.pb-matrix-display {
  position: relative;
  padding: 16px 22px 0;
  border: 1px solid #2c583a;
  border-radius: 2px 2px 8px 8px;
  background: linear-gradient(180deg, #0b1c12 0%, #050d09 75%);
  box-shadow: inset 0 0 0 3px #030805, inset 0 0 38px #0008;
  overflow: hidden;
}
.pb-matrix-display::before,
.pb-matrix-display::after {
  content: "";
  position: absolute;
  width: 3px;
  top: 15px;
  bottom: 65px;
  border: 1px solid #285a39;
}
.pb-matrix-display::before { left: 7px; }
.pb-matrix-display::after { right: 7px; }

.pb-matrix-scoreline { display: flex; justify-content: space-between; gap: 8px; color: #80b68b; font-size: 9px; letter-spacing: .1em; }
.pb-matrix-score-decoration { color: #719e65; white-space: nowrap; }
.pb-matrix-destination { margin: 25px 0 18px; }
.pb-matrix-eyebrow { display: block; margin-bottom: 7px; color: #7faf8e; font-size: 10px; letter-spacing: .22em; }
.pb-matrix-route { display: flex; align-items: baseline; gap: 10px; color: #d7ffca; font-size: clamp(20px, 5vw, 29px); font-weight: 700; line-height: 1.12; text-shadow: 0 0 16px #93ff9b30; }
.pb-matrix-route [data-loading-overlay-target="label"] { min-width: 0; overflow-wrap: anywhere; }
.pb-matrix-prompt { flex: 0 0 auto; color: #5fbe74; font-weight: 400; font-size: .7em; }

.pb-matrix-creatures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 13px 0 17px; border-top: 1px dashed #254a31; }
.pb-matrix-creature { min-width: 0; text-align: center; }
.pb-matrix-creature pre {
  display: block;
  width: max-content;
  max-width: 100%;
  min-height: 4.72em;
  margin: 0 auto 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #b4ffa8;
  font: clamp(10px, 2.8vw, 17px)/1.18 "Courier New", monospace;
  letter-spacing: 0;
  white-space: pre;
  text-align: left;
  text-shadow: 0 0 9px #87e99645;
}
.pb-matrix-creature--snail pre { color: #94d78d; }
.pb-matrix-creature--pigeon pre { color: #c6ebd0; }
.pb-matrix-creature-name { display: block; color: #a9d7af; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.pb-matrix-creature-copy { display: block; margin-top: 4px; color: #74a981; font-size: 9px; line-height: 1.25; }

.pb-matrix-lane { padding-top: 7px; }
.pb-matrix-lane-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #9bc3a3; font-size: 8px; line-height: 1.4; letter-spacing: .08em; }
.pb-matrix-lane-label > span:last-child { color: #6b9979; text-align: right; }
.pb-matrix-loader .pb-matrix-progress {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: 13px !important;
  margin: 0;
  transform: none !important;
  border: 1px solid #50835b;
  border-radius: 8px;
  background: #020704 !important;
  box-shadow: inset 0 0 0 2px #0c1b10, 0 0 12px #5caf6433;
  overflow: visible;
  --loading-progress: 0%;
}
.pb-matrix-loader .pb-matrix-progress::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  display: block;
  width: max(0px, calc(var(--loading-progress) - 6px));
  height: 5px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #397c45 0 5px, #7fec7e 5px 8px, #193a24 8px 11px);
  box-shadow: 0 0 7px #7aec7866;
}
.pb-matrix-loader .pb-matrix-progress::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -2px;
  left: clamp(0px, calc(var(--loading-progress) - 8px), calc(100% - 12px));
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #c8f0c7;
  background: radial-gradient(circle at 32% 28%, #fff 0 12%, #c7e7ca 20%, #669c75 49%, #183c29 75%, #07110b 100%);
  box-shadow: 0 0 12px #9aff8c80;
}
.pb-matrix-flippers { display: flex; justify-content: center; align-items: center; gap: 13px; height: 29px; margin-top: 2px; color: #457e51; }
.pb-matrix-flippers span { width: 46px; height: 5px; border: 1px solid #468758; border-radius: 5px; background: #152f1f; transform: rotate(16deg); }
.pb-matrix-flippers span:last-child { transform: rotate(-16deg); }
.pb-matrix-flippers i { font-size: 14px; font-style: normal; }

.pb-matrix-meta { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 10px; margin: 0; padding: 13px 0 15px; border-top: 1px solid #274b34; }
.pb-matrix-meta > div { min-width: 0; }
.pb-matrix-meta dt { margin: 0 0 5px; color: #6d9d7c; font-size: 8px; letter-spacing: .14em; }
.pb-matrix-meta dd { margin: 0; color: #c0d9bc; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.pb-matrix-meta > div:last-child { text-align: right; }
.pb-matrix-footer { display: flex; justify-content: space-between; gap: 10px; padding: 10px 7px 4px; color: #5d916e; font-size: 8px; letter-spacing: .14em; }
.pb-matrix-footer > span:last-child { color: #6faf71; letter-spacing: .35em; }

@keyframes pb-matrix-code-fall {
  from { transform: translateY(-55%); }
  to { transform: translateY(95vh); }
}

@media (max-width: 380px) {
  .pb-matrix-screen { padding: 16px 13px; }
  .pb-matrix-cabinet { padding: 6px; }
  .pb-matrix-marquee { padding: 10px 10px 12px; gap: 8px; }
  .pb-matrix-edition { max-width: 104px; font-size: 8px; }
  .pb-matrix-display { padding: 14px 15px 0; }
  .pb-matrix-destination { margin: 20px 0 16px; }
  .pb-matrix-scoreline { font-size: 7px; }
  .pb-matrix-score-decoration { letter-spacing: 0; }
  .pb-matrix-creatures { gap: 2px; }
  .pb-matrix-creature-copy { font-size: 8px; }
  .pb-matrix-lane-label { font-size: 7px; }
  .pb-matrix-meta { gap: 6px; }
  .pb-matrix-meta dt { font-size: 7px; letter-spacing: .06em; }
  .pb-matrix-meta dd { font-size: 10px; }
}

@media (max-height: 520px) and (min-width: 550px) {
  .pb-matrix-screen { padding: 12px 18px; }
  .pb-matrix-cabinet { max-width: 530px; }
  .pb-matrix-marquee { padding-top: 5px; padding-bottom: 8px; }
  .pb-matrix-brand { font-size: 26px; }
  .pb-matrix-display { padding-top: 10px; }
  .pb-matrix-destination { margin: 12px 0 10px; }
  .pb-matrix-route { font-size: 23px; }
  .pb-matrix-creatures { padding-top: 9px; padding-bottom: 9px; }
  .pb-matrix-creature pre { font-size: 12px; margin-bottom: 6px; }
  .pb-matrix-meta { padding-top: 9px; padding-bottom: 9px; }
  .pb-matrix-footer { padding-top: 7px; }
}

@media (max-height: 430px) and (min-width: 550px) {
  .pb-matrix-screen { padding: 10px 18px; }
  .pb-matrix-scoreline,
  .pb-matrix-eyebrow,
  .pb-matrix-creature-copy,
  .pb-matrix-flippers { display: none; }
  .pb-matrix-destination { margin: 6px 0 10px; }
  .pb-matrix-creature pre { font-size: 10px; margin-bottom: 4px; }
  .pb-matrix-lane { padding-top: 3px; padding-bottom: 12px; }
}

@media (max-height: 560px) and (max-width: 549px) {
  .pb-matrix-screen { padding: 10px 13px; }
  .pb-matrix-marquee { padding-top: 5px; padding-bottom: 8px; }
  .pb-matrix-display { padding-top: 10px; }
  .pb-matrix-destination { margin: 12px 0 10px; }
  .pb-matrix-route { font-size: 18px; }
  .pb-matrix-creature pre { font-size: 10px; margin-bottom: 6px; }
  .pb-matrix-creature-copy { display: none; }
  .pb-matrix-meta { padding-top: 8px; padding-bottom: 8px; }
  .pb-matrix-meta dd { font-size: 9px; }
  .pb-matrix-footer { padding-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .pb-matrix-loader *,
  .pb-matrix-loader *::before,
  .pb-matrix-loader *::after { animation: none !important; transition: none !important; }
  .pb-matrix-rain { opacity: .18; }
  .pb-matrix-rain > span { transform: none; }
}
