:root {
  color-scheme: dark;
  --ground: #0a0d10;
  --panel: rgba(12, 16, 20, 0.78);
  --panel-solid: #11161b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --steel: #93a0ac;
  --text: #e8ecef;
  --dim: #66727d;
  --amber: #f2a93b;
  --amber-deep: #b8741c;
  --cyan: #62d2e3;
  --green: #7bd88f;
  --red: #e5484d;
  --m1: #e8742f;
  --m2: #e9b632;
  --m3: #d6333a;
  --display:
    'Big Shoulders Stencil Display', 'Oswald', 'Arial Narrow', Impact,
    sans-serif;
  --body:
    'IBM Plex Sans Condensed', 'Roboto Condensed', 'Arial Narrow', system-ui,
    sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --exploration-footer-bg: #0c1014;
  --exploration-footer-ink: #93a0ac;
  --exploration-footer-border: rgba(255, 255, 255, 0.1);
}
[hidden] {
  display: none !important;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
}
#stage {
  position: relative;
  flex: 1 0 auto;
  height: 0;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}
#c {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.ui {
  position: absolute;
  z-index: 5;
  transition:
    transform 0.7s cubic-bezier(0.7, 0, 0.2, 1),
    opacity 0.45s;
}
.gone-left {
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}
.gone-right {
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
}
.gone-up {
  transform: translateY(-160%);
  opacity: 0;
  pointer-events: none;
}
.gone-down {
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

/* top bar */
#top {
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}
#top > * {
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand b span {
  color: var(--amber);
}
.brand small {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--steel);
  letter-spacing: 0.12em;
}
.pipe {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  transition: opacity 0.4s;
}
.chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--steel);
  white-space: nowrap;
}
.chip i {
  font-style: normal;
  color: var(--cyan);
}
.chip.claude i {
  color: var(--amber);
}
.iconbtn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--steel);
}
.iconbtn[aria-pressed='true'] {
  color: var(--amber);
  border-color: var(--amber-deep);
}

/* parts bay */
#bay {
  top: 72px;
  left: 16px;
  bottom: 16px;
  width: 330px;
  display: flex;
  flex-direction: column;
}
.bay-head {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.bay-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.03em;
  line-height: 1;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.step {
  position: relative;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 7px 0 6px;
  border: 1px solid var(--line-2);
  color: var(--steel);
  text-align: center;
  display: grid;
  gap: 1px;
}
.step b {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  color: var(--dim);
  line-height: 1;
}
.step[aria-selected='true'] {
  background: var(--amber);
  color: #16110a;
  border-color: var(--amber);
  font-weight: 600;
}
.step[aria-selected='true'] b {
  color: #16110a;
}
.cards {
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
  flex: 1;
  scrollbar-width: thin;
}
.card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  position: relative;
  transition:
    border-color 0.15s,
    background 0.15s,
    opacity 0.2s;
}
.card:hover:not(:disabled) {
  border-color: rgba(98, 210, 227, 0.55);
  background: rgba(98, 210, 227, 0.05);
}
.card[aria-pressed='true'] {
  border-color: var(--amber);
  background: rgba(242, 169, 59, 0.07);
}
.card .tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.card:disabled {
  opacity: 0.42;
}
.card:disabled .tag {
  color: var(--steel);
}
.thumb {
  width: 86px;
  height: 86px;
  background: radial-gradient(circle at 50% 62%, #222b33, #0d1115 72%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card h3 {
  margin: 2px 0 3px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1;
  padding-right: 56px;
}
.card p {
  margin: 0 0 5px;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.35;
}
.origin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.origin::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--c, var(--m1));
}
.deltas {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.d {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--steel);
}
.d.up {
  color: var(--green);
}
.d.down {
  color: var(--red);
}
.wtag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid rgba(98, 210, 227, 0.35);
  padding: 1px 5px;
}
.crane-status {
  border-top: 1px solid var(--line);
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--steel);
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
}
.crane-status i {
  width: 8px;
  height: 8px;
  background: var(--green);
  flex: none;
}
.crane-status.busy i {
  background: var(--amber);
  animation: blink 0.6s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.2;
  }
}
.instant {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.instant input {
  accent-color: var(--amber);
  width: 15px;
  height: 15px;
  margin: 0;
}
.instant span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.instant small {
  grid-column: 2;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.3;
}
.presets {
  border-top: 1px solid var(--line);
  padding: 10px 14px 12px;
  display: grid;
  gap: 6px;
}
.preset-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.preset {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 6px 8px;
  border: 1px solid var(--line-2);
  color: var(--text);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.preset::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--c);
}
.preset:hover:not(:disabled) {
  border-color: var(--amber);
}

/* spec sheet */
#spec {
  top: 72px;
  right: 16px;
  width: 300px;
  display: grid;
}
.spec-sec {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.callsign {
  display: grid;
  gap: 4px;
}
.callsign input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--display);
  font-weight: 900;
  font-size: 34px;
  letter-spacing: 0.03em;
  color: var(--text);
  padding: 0 0 2px;
  width: 100%;
  text-transform: uppercase;
}
.stat {
  display: grid;
  grid-template-columns: 78px 1fr 30px;
  align-items: center;
  gap: 8px;
}
.stat label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--steel);
}
.stat output {
  font-family: var(--mono);
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.segs {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  height: 10px;
}
.segs span {
  background: rgba(255, 255, 255, 0.07);
}
.segs span.on {
  background: var(--amber);
}
.segs span.gain {
  background: var(--green);
}
.segs span.loss {
  background: rgba(229, 72, 77, 0.55);
}
.readouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ro {
  border: 1px solid var(--line);
  padding: 8px;
}
.ro b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ro small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.setbonus {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dim);
  border: 1px dashed var(--line-2);
  padding: 7px 8px;
}
.setbonus.on {
  color: #16110a;
  background: var(--c, var(--amber));
  border-style: solid;
  border-color: transparent;
  font-weight: 600;
}
.deploy {
  margin: 14px;
  position: relative;
  padding: 16px 14px;
  background: var(--amber);
  color: #17100a;
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.06em;
  text-align: center;
  overflow: hidden;
}
.deploy::before,
.deploy::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    #17100a 0 8px,
    transparent 8px 16px
  );
}
.deploy::before {
  top: 0;
}
.deploy::after {
  bottom: 0;
}
.deploy:hover:not(:disabled) {
  background: #ffb94f;
}
.deploy:disabled {
  background: #3a4550;
  color: var(--steel);
}
.deploy small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-top: 2px;
}

/* callouts */
#callouts {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.4s;
}
#callouts svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
#callouts line {
  stroke: rgba(98, 210, 227, 0.55);
  stroke-width: 1;
}
#callouts circle {
  fill: var(--cyan);
}
.co {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--steel);
  background: rgba(10, 13, 16, 0.72);
  border: 1px solid rgba(98, 210, 227, 0.3);
  padding: 4px 7px;
  white-space: nowrap;
  text-align: left;
}
.co b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--text);
}
.co.sel {
  border-color: var(--amber);
}
.co.sel span {
  color: var(--amber);
}
.co:hover {
  border-color: var(--cyan);
}

#hint {
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--steel);
  padding: 7px 10px;
  white-space: nowrap;
}

/* banner + showcase */
#banner {
  position: absolute;
  left: 0;
  right: 0;
  top: 36%;
  z-index: 7;
  text-align: center;
  pointer-events: none;
  opacity: 0;
}
#banner.show {
  animation: ban 2.8s ease forwards;
}
#banner b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 11vw, 138px);
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: var(--text);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
#banner small {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--amber);
}
@keyframes ban {
  0% {
    opacity: 0;
    transform: scale(1.2);
    letter-spacing: 0.2em;
  }
  14% {
    opacity: 1;
    transform: scale(1);
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
#show {
  left: 16px;
  bottom: 16px;
  width: min(460px, calc(100% - 32px));
}
.show-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.show-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 52px;
  line-height: 0.9;
  letter-spacing: 0.03em;
}
.show-head p {
  margin: 0;
  color: var(--steel);
  font-size: 13px;
}
.show-parts {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}
.show-parts li {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.show-parts li span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.08em;
}
.show-parts li em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--dim);
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.show-parts li em::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--c);
}
.show-stats {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.show-stats div b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.show-stats div small {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 0.1em;
}
.show-actions {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn {
  padding: 11px 16px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn.primary {
  background: var(--amber);
  color: #17100a;
  border-color: var(--amber);
  font-weight: 600;
}
.btn:hover {
  border-color: var(--amber);
}
.credit {
  padding: 0 16px 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  line-height: 1.6;
}
.credit i {
  font-style: normal;
  color: var(--steel);
}

/* intro */
#intro {
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  background: radial-gradient(
    ellipse at 50% 38%,
    rgba(10, 13, 16, 0.45),
    rgba(10, 13, 16, 0.95) 72%
  );
  padding-inline: 16px;
  overflow: auto;
}
.intro {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 34px;
  align-items: center;
  padding-block: 24px;
}
.intro-copy {
  display: grid;
  gap: 20px;
}
.intro h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.82;
  letter-spacing: 0.01em;
}
.intro h1 span {
  color: var(--amber);
}
.lede {
  margin: 0;
  max-width: 46ch;
  color: var(--steel);
  font-size: 16px;
  line-height: 1.5;
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-2);
}
.pl {
  padding: 10px;
  border-right: 1px solid var(--line-2);
  display: grid;
  gap: 3px;
  align-content: start;
}
.pl:last-child {
  border-right: 0;
}
.pl .n {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  color: var(--amber);
  line-height: 1;
}
.pl b {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.pl small {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.pl.claude small {
  color: var(--amber);
}
.go-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.go {
  padding: 16px 26px;
  background: var(--amber);
  color: #17100a;
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.06em;
}
.go:disabled {
  background: #3a4550;
  color: var(--steel);
  cursor: progress;
}
.load {
  display: grid;
  gap: 5px;
  min-width: 180px;
  flex: 1;
}
.lbar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.lbar i {
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.roster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.frame {
  position: relative;
  border: 1px solid var(--line-2);
  background: linear-gradient(#1a2026, #0e1216);
  overflow: hidden;
  aspect-ratio: 1225/1280;
  max-width: 100%;
}
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: transform 0.6s;
}
.frame:hover img {
  transform: scale(1.04);
}
.frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(8, 10, 12, 0.92));
}
.frame figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  z-index: 1;
  display: grid;
  gap: 2px;
}
.frame figcaption b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.03em;
  line-height: 1;
}
.frame figcaption small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--steel);
}
.frame .stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c);
  z-index: 1;
}
.frame .no {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--steel);
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .roster {
    order: -1;
  }
}
@media (max-width: 860px) {
  #top .pipe {
    display: none;
  }
  #callouts {
    display: none;
  }
  #spec {
    top: auto;
    bottom: calc(40vh + 26px);
    right: 16px;
    width: 200px;
  }
  #spec .spec-sec.more,
  #spec .callsign,
  .readouts {
    display: none;
  }
  #spec .spec-sec {
    padding: 10px;
    gap: 6px;
  }
  .stat {
    grid-template-columns: 62px 1fr 24px;
  }
  .deploy {
    margin: 10px;
    padding: 10px;
    font-size: 22px;
  }
  #bay {
    top: auto;
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    height: 40vh;
  }
  .bay-head {
    padding: 10px;
  }
  .bay-head h2 {
    display: none;
  }
  .cards {
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 80%);
    overflow-x: auto;
    overflow-y: hidden;
  }
  .presets {
    display: none;
  }
  #hint {
    display: none;
  }
  .pipeline {
    grid-template-columns: 1fr 1fr;
  }
  .pl:nth-child(2) {
    border-right: 0;
  }
  .pl:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-2);
  }
  .show-head h2 {
    font-size: 40px;
  }
  .show-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ui {
    transition: none;
  }
  #banner.show {
    animation-duration: 0.01s;
  }
}

/* site shell: gallery link, signup and the shared footer stay outside the game area */
.site-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  min-height: 56px;
  box-sizing: border-box;
  background: #0c1014;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}
.site-brand img {
  display: block;
  width: 98px;
  height: auto;
}
.site-divider {
  color: var(--dim);
}
.site-section {
  color: var(--steel);
}
.site-brand:hover .site-section {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.create-yours {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  box-sizing: border-box;
  border: 1px solid var(--amber-deep);
  color: var(--amber);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.create-yours:hover {
  background: var(--amber);
  color: #17100a;
  border-color: var(--amber);
}
.site-brand:focus-visible,
.create-yours:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.site-footer[data-exploration-controls] {
  flex: none;
  position: static;
  background: var(--exploration-footer-bg);
  color: var(--exploration-footer-ink);
  border-top: 1px solid var(--exploration-footer-border);
}
.noscript {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 30;
  margin: 0;
  padding: 12px 14px;
  background: var(--panel-solid);
  border: 1px solid var(--line-2);
  color: var(--text);
}
#lost {
  inset: 0;
  margin: auto;
  width: min(380px, calc(100% - 32px));
  height: fit-content;
  z-index: 30;
  padding: 18px;
  display: grid;
  gap: 10px;
  background: var(--panel-solid);
}
#lost h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
}
#lost p {
  margin: 0;
  color: var(--steel);
  line-height: 1.45;
}
#lost .btn {
  justify-self: start;
}
@media (max-width: 480px) {
  .site-section,
  .site-divider {
    display: none;
  }
  .create-yours {
    padding: 0 12px;
  }
}
@media (max-height: 640px) {
  #stage {
    min-height: 520px;
  }
}

/* presentation mode (?present): the film fills the stage, no bay controls, a lower third and a sound
   prompt. The site header (gallery, making-of, signup) and the shared footer (cookie settings)
   stay in normal flow, as in the bay. */
body.present .ui,
body.present #callouts,
body.present #banner {
  display: none !important;
}
body.present #stage {
  min-height: 320px;
}
.present-ov {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  font-family: var(--mono);
}
.present-ov > * {
  position: absolute;
}
.po-title {
  left: clamp(16px, 3vw, 40px);
  top: clamp(16px, 3vw, 36px);
  display: grid;
  gap: 4px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.po-title b {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 0.03em;
  line-height: 0.9;
  color: var(--text);
}
.po-title b span {
  color: var(--amber);
}
.po-title small {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 8px;
}
.po-title small::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1.2s steps(2) infinite;
}
.po-cap {
  left: clamp(16px, 3vw, 40px);
  bottom: clamp(20px, 4vw, 44px);
  padding: 9px 14px;
  background: rgba(10, 13, 16, 0.72);
  border-left: 3px solid var(--amber);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s,
    transform 0.5s;
  max-width: calc(100% - 32px);
}
.po-cap.on {
  opacity: 1;
  transform: none;
}
.po-credit {
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(20px, 4vw, 44px);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}
.po-credit i {
  font-style: normal;
  color: var(--amber);
}
.po-sound {
  right: clamp(16px, 3vw, 40px);
  top: clamp(16px, 3vw, 36px);
  pointer-events: auto;
  padding: 9px 14px;
  border: 1px solid var(--line-2);
  background: rgba(10, 13, 16, 0.6);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.po-fade {
  inset: 0;
  background: #000;
  opacity: 0;
}
.po-fade.on {
  animation: pofade 0.7s ease-out;
}
@keyframes pofade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .po-fade.on {
    animation: none;
  }
}
@media (max-width: 600px) {
  .po-credit {
    display: none;
  }
}

/* film framing for the presentation: 2.39:1 letterbox, titles live inside the bars */
.po-bar {
  left: 0;
  right: 0;
  height: max(0px, calc((100% - 100vw / 2.39) / 2));
  min-height: 7%;
  background: #000;
}
.po-bar-t {
  top: 0;
}
.po-bar-b {
  bottom: 0;
}
.present-ov .po-title {
  top: max(10px, calc((100% - 100vw / 2.39) / 4 - 20px));
}
.present-ov .po-cap {
  bottom: max(12px, calc((100% - 100vw / 2.39) / 4 - 16px));
  background: transparent;
  border-left-color: var(--amber);
}
.present-ov .po-credit {
  bottom: max(12px, calc((100% - 100vw / 2.39) / 4 - 8px));
}
.present-ov .po-sound {
  top: max(10px, calc((100% - 100vw / 2.39) / 4 - 16px));
}

/* camera switcher inside the bottom letterbox bar */
.po-cams {
  right: clamp(12px, 2.4vw, 32px);
  bottom: max(8px, calc((100% - 100vw / 2.39) / 4 - 16px));
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  pointer-events: auto;
  max-width: 62%;
}
.po-cams button {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 13, 16, 0.6);
  min-height: 30px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.po-cams button i {
  font-style: normal;
  color: var(--dim);
}
.po-cams button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}
.po-cams button[aria-pressed='true'] {
  color: #17100a;
  background: var(--amber);
  border-color: var(--amber);
}
.po-cams button[aria-pressed='true'] i {
  color: #17100a;
}
.present-ov .po-credit {
  bottom: auto;
  top: max(12px, calc((100% - 100vw / 2.39) / 4 - 6px));
  right: calc(clamp(16px, 3vw, 40px) + 150px);
}
@media (max-width: 760px) {
  .po-cams {
    max-width: 100%;
    left: 12px;
    justify-content: flex-start;
  }
  .present-ov .po-cap {
    display: none;
  }
}

/* making-of link beside the signup */
.site-header {
  gap: 12px;
}
.site-header .making-of {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.site-header .making-of + .making-of {
  margin-left: 0;
}
.site-header .making-of:hover {
  color: var(--text);
}
.site-header .making-of:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .site-header .making-of {
    font-size: 11px;
    padding: 0 2px;
  }
}
@media (max-width: 480px) {
  .site-header {
    gap: 8px;
    padding: 8px 12px;
  }
  /* narrow screens: brand and signup on the first row, the making-of resources below */
  .site-header {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 0;
  }
  .site-header::after {
    content: '';
    order: 1;
    flex-basis: 100%;
  }
  .site-header .create-yours {
    order: 1;
    margin-left: auto;
  }
  .site-header .making-of {
    order: 2;
    min-height: 32px;
    margin-left: 0;
  }
  .site-header .mo-pdf {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .site-brand img {
    width: 84px;
  }
  .create-yours {
    padding: 0 10px;
    gap: 6px;
  }
}

/* Phones and short screens: the bay panel needs about 340px to show the part cards, the crane
   status and Instant swap, so it never drops below that and short screens scroll the document
   instead of clipping the cards. */
@media (max-width: 860px) {
  #bay {
    height: max(40vh, 340px);
  }
  #spec {
    bottom: calc(max(40vh, 340px) + 26px);
  }
  body:not(.present) #stage {
    min-height: 640px;
  }
}
@media (max-width: 360px) {
  .brand small {
    display: none;
  }
}
/* Short landscape screens: the camera bar wraps, so the lower-third caption steps aside as on
   narrow screens. */
@media (max-height: 500px) {
  .present-ov .po-cap {
    display: none;
  }
}
