:root {
  --cream: #F1EAD9;
  --brown: #2E2119;
  --blue: #2438FF;
}

* { box-sizing: border-box; }

html {
  background: var(--cream);
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--cream);
  color: var(--brown);
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1.5;
}

a {
  color: var(--blue);
}

a:visited {
  color: var(--blue);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--brown);
}

.proto-num {
  color: var(--brown);
}

#app {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 40px);
}

.collection-list {
  list-style: decimal;
  margin: 0 auto;
  padding: 32px 24px 32px 40px;
  max-width: 420px;
  width: 100%;
}

.collection-list li {
  margin-bottom: 10px;
}

.collection-list a {
  text-decoration: underline;
}

.stage-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px;
  min-height: 60svh;
}

.meta-line {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.stage-photo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 0;
}

.stage-photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.n1 .stage-photo img { width: 40%; }

.n2 .stage-photo { justify-content: flex-end; }
.n2 .stage-photo img { width: 70%; }

.n3 .stage-photo img { width: 100%; height: 100%; }

.n4 .stage-photo { align-items: flex-end; }
.n4 .stage-photo img { width: 20%; }

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--brown);
}

.controls select,
.controls button {
  font-family: inherit;
  font-size: inherit;
  color: var(--blue);
  background: var(--cream);
  border: 1px solid var(--brown);
  padding: 4px 8px;
}

.controls button:disabled {
  color: #8a8a8a;
  border-color: #8a8a8a;
}

.site-footer {
  padding: 10px 14px;
  font-size: 11px;
  border-top: 1px solid var(--brown);
}

noscript p,
noscript ul {
  margin: 0 14px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* Astra review: hidden views must remain hidden; bound the encounter, not body. */
[hidden]{display:none!important}.stage-wrap{height:calc(100svh - 86px);min-height:580px;flex:none}.stage-photo{min-height:0;overflow:hidden;max-height:calc(100svh - 205px)}.stage-photo img{max-height:100%;height:auto}.n3 .stage-photo img{height:100%}.n4 .stage-photo img{margin-bottom:12px}.controls select{max-width:100%;min-width:0;flex:1 1 190px}.controls button{min-height:32px}.controls a{padding:5px 0}a:focus-visible,button:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:3px}@media(max-height:620px){.stage-photo{max-height:none;min-height:240px}.stage-wrap{height:auto;min-height:580px}}
