/* SITE: site plan (blueprint), place pages, lost & found, locker, poster. Prefix st-. Loaded after wall.css and page.css. */

:root {
  --st-bp: #11365F;
  --st-bp-2: #0B2848;
  --st-ink: #E4EEFF;
  --st-ink-dim: rgba(228, 238, 255, .6);
  --st-red: #FF8270;
  --st-sign: #F0BE2E;
  --st-manila: #D9BF88;
  --st-ring: var(--room);
}

/* ---------- blueprint: shapes and text inside the svg ---------- */

.st-paper { fill: var(--st-bp); }
.st-paperfill { fill: var(--st-bp); }
.st-g1 { fill: none; stroke: rgba(190, 220, 255, .075); stroke-width: 1; }
.st-g2 { fill: none; stroke: rgba(190, 220, 255, .14); stroke-width: 1.2; }
.st-hl { stroke: rgba(228, 238, 255, .42); stroke-width: 1.4; }
.st-hl2 { stroke: rgba(228, 238, 255, .16); stroke-width: 1; }

.st-l,
.st-l0,
.st-l1,
.st-l3 {
  fill: none;
  stroke: var(--st-ink);
  stroke-linejoin: round;
  stroke-linecap: round;
}

.st-l { stroke-width: 2; }
.st-l0 { stroke-width: .9; opacity: .75; }
.st-l1 { stroke-width: 1.3; }
.st-l3 { stroke-width: 3.2; }

.st-fill { fill: rgba(228, 238, 255, .07); }
.st-fill2 { fill: rgba(228, 238, 255, .13); }
.st-fill3 { fill: rgba(228, 238, 255, .38); }
.st-solid { fill: var(--st-ink); }
.st-paperfill.st-l,
.st-paperfill.st-l1 { fill: var(--st-bp); }

.st-dash { stroke-dasharray: 8 6; }
.st-dash2 { stroke-dasharray: 14 9; }
.st-dashdot { stroke-dasharray: 22 6 3 6; }
.st-faint { opacity: .4; }
.st-fence { stroke-dasharray: 18 5 3 5; }
.st-plot { stroke-dasharray: 26 6 4 6 4 6; }

.st-road-edge { fill: none; stroke: var(--st-ink); stroke-width: 66; }
.st-road { fill: none; stroke: var(--st-bp); stroke-width: 61; }
.st-road-edge--h2 { stroke-width: 54; }
.st-road--h2 { stroke-width: 49; }

.st-wall { fill: rgba(228, 238, 255, .32); stroke-width: 1.6; }
.st-gap { stroke: var(--st-bp); stroke-width: 5; }
.st-jib { fill: none; stroke: var(--st-ink); stroke-width: 8; opacity: .2; }
.st-cone { fill: rgba(228, 238, 255, .06); stroke: rgba(228, 238, 255, .4); stroke-width: 1; stroke-dasharray: 4 5; }
.st-star { fill: var(--st-red); }
.st-level { fill: var(--accent); }
.st-red-l { fill: none; stroke: var(--st-red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.st-cloud { stroke-width: 2.4; }
.st-arrowhead { fill: var(--st-ink); }
.st-arrowhead--red { fill: var(--st-red); }

.st-t {
  fill: var(--st-ink);
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: .06em;
}

.st-t--xs { font-size: 15px; }
.st-t--s { font-size: 18px; }
.st-t--m { font-size: 22px; font-weight: 700; }
.st-t--l { font-size: 28px; font-weight: 800; }
.st-t--xl { font-size: 34px; font-weight: 800; letter-spacing: .04em; }
.st-t--zone { font-family: var(--f-mono); font-size: 11px; text-anchor: middle; fill: var(--st-ink-dim); }
.st-t--axis { font-size: 12px; font-weight: 700; text-anchor: middle; letter-spacing: 0; }
.st-t--k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; fill: var(--st-ink-dim); }
.st-t--v,
.st-t--note { font-family: var(--f-text); font-weight: 400; font-size: 15px; letter-spacing: 0; }
.st-t--cam { font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; }
.st-t--d { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; }
.st-t--red { fill: var(--st-red); }
.st-red-t { fill: var(--st-red); font-family: var(--f-display); font-weight: 800; font-size: 15px; text-anchor: middle; }

.st-hand {
  fill: var(--st-red);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 21px;
}

.st-hand--sig { fill: var(--st-ink); font-size: 22px; }
.st-hand--s { font-size: 14px; }

/* markers */

.st-mk { cursor: pointer; outline: none; }
.st-mk__hit { fill: transparent; }
.st-mk__dot { fill: var(--accent); stroke: #081C33; stroke-width: 2.5; }

.st-mk__no {
  fill: #1F1C17;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 19px;
  text-anchor: middle;
}

.st-mk__in {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .15s var(--ease);
}

.st-mk:hover .st-mk__in,
.st-mk:focus-visible .st-mk__in {
  transform: scale(1.2);
}

.st-mk:focus-visible .st-mk__dot {
  stroke: #fff;
  stroke-width: 4;
}

.st-mk__new { fill: var(--st-red); stroke: #081C33; stroke-width: 2; }

.st-mk__pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: st-pulse 1.9s ease-out infinite;
}

@keyframes st-pulse {
  from { transform: scale(1); opacity: .9; }
  to { transform: scale(2.3); opacity: 0; }
}

.st-mk[data-seen] .st-mk__pulse,
.st-mk[data-seen] .st-mk__new {
  display: none;
}

.st-mk--locked .st-mk__dot { fill: var(--st-bp); stroke: var(--st-ink); stroke-width: 2; stroke-dasharray: 4 3; }
.st-mk__lock { fill: none; stroke: var(--st-ink); stroke-width: 1.8; stroke-linejoin: round; }

/* the glove */

.st-glove { cursor: pointer; outline: none; }
.st-glove__hit { fill: transparent; }
.st-glove__shape { fill: var(--st-bp); stroke: var(--st-ink); stroke-width: 1.4; stroke-linejoin: round; }
.st-glove__cuff { stroke: var(--st-ink); stroke-width: 1; }
.st-glove:focus-visible .st-glove__hit { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 4 4; }
.st-glove[data-found] .st-glove__shape { fill: var(--accent); stroke: #081C33; }

/* key plan */

.st-km__dot { fill: var(--st-ink); opacity: .5; }
.st-km__ring { fill: none; stroke: var(--st-red); stroke-width: 4; }
.st-mk__no--key { font-size: 38px; }
.st-km__ring { stroke-width: 6; }

/* ---------- sheets on the page ---------- */

.st-plan {
  display: grid;
  gap: var(--s-7);
}

@media (min-width: 64em) {
  .st-plan {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      'site site'
      'side walk'
      'side rev';
    grid-template-rows: auto auto 1fr;
    column-gap: var(--s-6);
    row-gap: var(--s-6);
    align-items: start;
  }

  .st-sheet--site { grid-area: site; }
  .st-plan__side { grid-area: side; }
  .st-walk { grid-area: walk; }
  .st-revs { grid-area: rev; }
}

.st-plan__side {
  display: grid;
  gap: var(--s-7);
  min-width: 0;
}

.st-sheet {
  min-width: 0;
}

.st-sheet__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-4);
}

.st-sheet__h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  margin: 0;
}

.st-sheet__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #EDE6D7;
}

.st-zoom {
  display: flex;
  gap: var(--s-2);
}

.st-zoom .key {
  font-family: var(--f-display);
  font-size: 1.375rem;
}

/* a key at its limit keeps the focus (aria-disabled, not disabled) and looks like a disabled key */
.st-zoom .key[aria-disabled="true"] {
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

.st-sheet__paper {
  position: relative;
  padding: 0;
  background: var(--st-bp);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 22px 44px rgba(0, 0, 0, .55), 0 3px 6px rgba(0, 0, 0, .4);
}

.st-sheet__paper::before,
.st-sheet__paper::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: -.6rem;
  width: 5.5rem;
  height: 1.5rem;
  background: rgba(233, 221, 172, .78);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  pointer-events: none;
}

.st-sheet__paper::before {
  left: 1rem;
  transform: rotate(-5deg);
}

.st-sheet__paper::after {
  right: 1rem;
  transform: rotate(4deg);
}

.st-view {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(0, 0, 0, .35);
  outline: none;
}

.st-view[data-drag] {
  cursor: grabbing;
}

.st-svg {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 47.99em) {
  .st-sheet--site .st-svg { min-width: 53.75rem; }
  .st-sheet--home .st-svg { min-width: 37.5rem; }
}

html:not([data-js]) .st-zoom {
  display: none;
}

.st-sheet__hint {
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: var(--t-osd);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--label-muted);
}

@media (min-width: 48em) {
  .st-sheet__hint:not([data-on]) { display: none; }
}

/* ---------- walk list / legend ---------- */

.st-walk__h,
.st-revs__h,
.st-lf__h {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-2);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #EDE6D7;
}

.st-walk__h::after,
.st-revs__h::after,
.st-lf__h::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--bezel-hi), transparent);
}

.st-walk__sub,
.st-revs__sub,
.st-walk__group {
  font-family: var(--f-mono);
  font-size: var(--t-osd);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--label-muted);
}

.st-walk__group {
  margin: var(--s-4) 0 var(--s-2);
  color: var(--accent);
}

.st-walk__list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-walk__list::before {
  content: '';
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  left: calc(var(--s-2) + 1.375rem - 1.5px);
  border-left: 3px dashed rgba(225, 165, 39, .45);
}

.st-walk__a {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 3.5rem;
  padding: var(--s-2);
  color: var(--label);
  text-decoration: none;
  border-radius: 6px;
}

.st-walk__a:hover {
  background: rgba(255, 255, 255, .045);
}

.st-walk__no {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--st-ring), inset 0 -2px 0 rgba(0, 0, 0, .2);
}

.st-walk__no .ic {
  width: 1.125rem;
  height: 1.125rem;
}

.st-walk__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}

.st-walk__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #EDE6D7;
}

.st-walk__line {
  font-style: italic;
  font-size: .9375rem;
  line-height: 1.35;
  color: var(--label-muted);
  overflow-wrap: anywhere;
}

.st-walk__go {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--label-muted);
}

.st-walk__item--locked .st-walk__no {
  color: var(--label-muted);
  background: var(--st-ring);
  box-shadow: 0 0 0 4px var(--st-ring), inset 0 0 0 2px var(--label-muted);
}

.st-walk__item--locked .st-walk__name {
  color: var(--label-muted);
}

.st-walk__here,
.st-new {
  display: inline-block;
  margin-left: var(--s-1);
  padding: .15rem .4rem .1rem;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .625rem;
  line-height: 1.2;
  letter-spacing: .1em;
  vertical-align: middle;
  text-transform: uppercase;
  border-radius: 3px;
}

.st-walk__here {
  color: #fff;
  background: #B3261E;
}

.st-new {
  color: #2A0B07;
  background: var(--st-red);
}

[data-seen] .st-new {
  display: none;
}

.st-walk__road {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1) var(--s-3);
  margin: var(--s-4) 0 0;
  padding: var(--s-3) var(--s-4);
  font-family: var(--f-mono);
  font-size: var(--t-osd);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--label);
  background:
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(242, 238, 230, .55) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 2.5rem 100% repeat-x,
    #24221F;
  border-top: 2px solid #3B3833;
  border-bottom: 2px solid #3B3833;
}

.st-walk__road span {
  padding: 0 .35rem;
  background: #24221F;
}

.st-walk__road .pg-hand {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--st-red);
}

/* ---------- lost & found ---------- */

.st-lf__tags {
  display: grid;
  gap: var(--s-4);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}

.st-tag {
  position: relative;
  display: grid;
  gap: .2rem;
  max-width: 26rem;
  padding: var(--s-3) var(--s-4) var(--s-3) 3rem;
  color: #2A2418;
  background:
    linear-gradient(rgba(255, 255, 255, .18), rgba(0, 0, 0, .04)),
    var(--st-manila);
  clip-path: polygon(1.5rem 0, 100% 0, 100% 100%, 1.5rem 100%, 0 calc(100% - 1.25rem), 0 1.25rem);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
  transform: rotate(-.8deg);
}

.st-tag:nth-child(2n) {
  transform: rotate(.9deg);
}

.st-tag::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 1rem;
  width: .9rem;
  height: .9rem;
  margin-top: -.45rem;
  border-radius: 50%;
  background: var(--st-ring);
  box-shadow: 0 0 0 3px #B79D63;
}

.st-tag__k {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-osd);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8A1F17;
}

.st-tag__v {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.st-tag__s {
  font-size: .875rem;
  line-height: 1.4;
  color: #4B4130;
}

.st-tag__s a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  color: inherit;
  text-decoration-color: #8A1F17;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.st-tag--missing {
  background:
    repeating-linear-gradient(-45deg, rgba(138, 31, 23, .07) 0 .5rem, transparent .5rem 1rem),
    #E8DCBA;
}

.st-tag__btn {
  margin-top: var(--s-2);
}

/* revisions: folded, the summary says how many */

.st-revs__sum {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--s-2);
  min-height: var(--hit);
  cursor: pointer;
  list-style: none;
}

.st-revs__sum::-webkit-details-marker {
  display: none;
}

.st-revs__sum::before {
  content: '+';
  grid-row: 1 / 3;
  font-family: var(--f-mono);
  font-size: 1.25rem;
  color: var(--amber);
}

.st-revs[open] .st-revs__sum::before {
  content: '−';
}

.st-revs__sum .st-revs__h {
  margin: 0;
}

/* ---------- you are here: the site office ---------- */

.st-office {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-4);
}

.st-office__art {
  min-width: 0;
  padding: var(--s-2);
  background:
    linear-gradient(rgba(190, 220, 255, .07) 1px, transparent 1px) 0 0 / 1rem 1rem,
    linear-gradient(90deg, rgba(190, 220, 255, .07) 1px, transparent 1px) 0 0 / 1rem 1rem,
    var(--st-bp);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(228, 238, 255, .2), 0 6px 14px rgba(0, 0, 0, .45);
}

.st-officeart {
  display: block;
  width: 100%;
  height: auto;
}

.st-officeart--tall {
  display: none;
}

@media (min-width: 48em) {
  .st-office {
    gap: var(--s-5);
    padding: var(--s-5);
  }

  .st-office__art .st-officeart--tall { display: block; }
  .st-office__art .st-officeart--wide { display: none; }
}

.st-office__main {
  display: grid;
  gap: var(--s-3);
  min-width: 0;
}

.st-office__h {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #EDE6D7;
}

.st-office__star {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--st-red);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.st-office__line {
  color: var(--label);
}

/* directory: what is in the office and in what state (dark plate on the plan, paper in the card) */

.st-dir,
.st-card__links {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-dir a,
.st-card__links a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 3.25rem;
  padding: var(--s-2) var(--s-2);
  text-decoration: none;
}

.st-dir a {
  color: var(--label);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.st-dir li:last-child a {
  border-bottom: 0;
}

.st-dir a:hover {
  background: rgba(255, 255, 255, .045);
}

.st-dir .ic {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
}

.st-dir__body {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .1rem var(--s-3);
  min-width: 0;
}

.st-dir__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.st-dir a .st-dir__name {
  color: #EDE6D7;
}

.st-dir__state {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-osd);
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--label-muted);
}

.st-dir__state::before {
  content: '';
  flex: none;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #4A4741;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5);
}

.st-dir__state--on::before {
  background: #5FD068;
  box-shadow: 0 0 6px rgba(95, 208, 104, .7);
}

.st-dir__state--rec::before {
  background: var(--rec-osd);
  box-shadow: 0 0 6px rgba(255, 74, 61, .7);
}

.st-dir__state--lock::before {
  background: var(--accent);
  box-shadow: 0 0 5px rgba(225, 165, 39, .55);
}

.st-dir__state--off {
  padding: .1rem .35rem;
  color: #111;
  background: var(--st-sign);
  border-radius: 2px;
}

.st-dir__state--off::before {
  display: none;
}

.st-dir__go {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  opacity: .6;
}

.st-dir .st-dir__go {
  color: var(--label-muted);
}

/* ---------- revisions ---------- */

.st-revs__scroll {
  margin-top: var(--s-4);
  overflow-x: auto;
}

.st-rev {
  width: 100%;
  font-family: var(--f-mono);
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--st-ink);
  background: var(--st-bp);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
}

.st-rev th,
.st-rev td {
  padding: .55rem .7rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid rgba(228, 238, 255, .28);
}

.st-rev thead th {
  font-size: var(--t-osd);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--st-ink-dim);
}

.st-rev tbody th {
  width: 3.25rem;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.125rem;
}

.st-rev td:nth-child(2) {
  width: 6rem;
  white-space: nowrap;
}

.st-rev td:nth-child(2) {
  padding-top: 0;
  padding-bottom: 0;
}

.st-rev a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  color: var(--st-ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.st-rev__cur {
  background: rgba(255, 130, 112, .14);
}

.st-rev__cur th {
  color: var(--st-red);
}

/* ---------- place card dialog ---------- */

.st-dlg {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 92svh;
  margin: 0;
  padding: 0;
  color: var(--paper-ink);
  background: transparent;
  border: 0;
  overflow: visible;
}

.st-dlg::backdrop {
  background: rgba(4, 9, 16, .7);
}

.st-dlg__in {
  position: relative;
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(rgba(255, 255, 255, .25), rgba(0, 0, 0, .03)),
    var(--paper);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, .6);
  padding-bottom: env(safe-area-inset-bottom);
  animation: st-up .34s var(--ease) both;
}

.st-dlg[data-closing] .st-dlg__in {
  animation: st-down .2s ease-in both;
}

@keyframes st-up {
  from { transform: translateY(100%); }
}

@keyframes st-down {
  to { transform: translateY(100%); }
}

@keyframes st-pop {
  from { transform: translateY(1.5rem) scale(.97); opacity: 0; }
}

@keyframes st-fade {
  to { transform: translateY(1rem); opacity: 0; }
}

@media (min-width: 48em) {
  .st-dlg {
    inset: 0;
    width: min(54rem, calc(100% - 3rem));
    height: fit-content;
    margin: auto;
  }

  .st-dlg__in {
    border-radius: 3px;
    animation-name: st-pop;
  }

  .st-dlg[data-closing] .st-dlg__in {
    animation-name: st-fade;
  }
}

.st-dlg__x {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--hit);
  height: var(--hit);
  color: #F2EEE6;
  background: rgba(20, 18, 16, .78);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.st-dlg__x .ic {
  width: 1.25rem;
  height: 1.25rem;
}

.st-card {
  display: grid;
}

.st-card__photo {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.st-card__photo img,
.st-card__photo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-card__photo--plan {
  padding: var(--s-3);
  background:
    linear-gradient(rgba(190, 220, 255, .07) 1px, transparent 1px) 0 0 / 1rem 1rem,
    linear-gradient(90deg, rgba(190, 220, 255, .07) 1px, transparent 1px) 0 0 / 1rem 1rem,
    var(--st-bp);
}

.st-card__photo--plan .st-officeart--tall {
  display: none;
}

.st-card__photo--locked {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s-3);
  aspect-ratio: 16 / 7;
  color: var(--st-ink);
  background:
    repeating-linear-gradient(45deg, rgba(228, 238, 255, .16) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(-45deg, rgba(228, 238, 255, .16) 0 1px, transparent 1px 11px),
    var(--st-bp);
}

.st-card__lock {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: var(--st-bp);
  border: 2px dashed var(--st-ink);
  border-radius: 50%;
}

.st-card__photo .st-card__lock .ic {
  width: 1.75rem;
  height: 1.75rem;
}

.st-card__lockt {
  padding: .2rem .5rem;
  font-family: var(--f-mono);
  font-size: var(--t-osd);
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--st-bp);
}

.st-card__cam {
  position: absolute;
  left: var(--s-3);
  bottom: var(--s-3);
}

.st-card__text {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  min-width: 0;
  padding: var(--s-5) var(--s-4);
}

@media (min-width: 48em) {
  .st-card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .st-dlg:has(.st-card--locked) {
    width: min(44rem, calc(100% - 3rem));
  }

  .st-card--locked .st-card__photo {
    min-height: 15rem;
  }

  .st-card__photo {
    height: 100%;
    min-height: 27rem;
    aspect-ratio: auto;
  }

  .st-card__photo--plan {
    min-height: 0;
    display: grid;
    align-items: center;
    padding: var(--s-5) var(--s-4);
  }

  .st-card__photo--plan .st-officeart--tall {
    display: block;
    height: auto;
  }

  .st-card__photo--plan .st-officeart--wide {
    display: none;
  }

  .st-card__text {
    padding: var(--s-6) var(--s-6) var(--s-5);
  }
}

.st-card__no {
  padding-right: 3rem;
  font-family: var(--f-mono);
  font-size: var(--t-osd);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.st-card--locked .st-card__no {
  padding-right: 3rem;
}

.st-card__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.st-card__line {
  font-size: 1.125rem;
}

.st-card__body {
  font-size: .9375rem;
  line-height: 1.45;
}

.st-card__rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-2);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.st-card__rk {
  padding: .2rem .45rem .15rem;
  color: var(--st-sign);
  background: #111;
  border-radius: 3px;
  letter-spacing: .1em;
}

.st-card__rq {
  flex: 1 1 10rem;
}

.st-card__things,
.st-found {
  display: grid;
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-card__things li,
.st-found li {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-family: var(--f-mono);
  font-size: .8125rem;
  line-height: 1.5;
}

.st-card__things li::before,
.st-found li::before {
  content: '—';
  flex: none;
}

.st-card__things li {
  align-items: center;
  min-height: 2rem;
}

.st-card__things a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.st-card__links a {
  min-height: 2.75rem;
  padding: .35rem var(--s-2);
  color: var(--paper-ink);
  border-bottom: 1px solid var(--paper-line);
}

.st-card__links a:hover {
  background: rgba(31, 28, 23, .06);
}

.st-card__links .ic {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ink-red);
}

.st-card__links .st-dir__state {
  color: var(--paper-muted);
}

.st-card__links .st-dir__state--off {
  color: #111;
}

.st-card__links .st-dir__go {
  color: var(--paper-muted);
}

.st-card__k {
  font-family: var(--f-mono);
  font-size: var(--t-osd);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.st-card__tapes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: calc(var(--s-2) * -1);
}

.st-chip {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--hit);
  padding: .3rem .6rem;
  color: #F2EEE6;
  text-decoration: none;
  background: #23201C;
  border-radius: 3px;
  box-shadow: 0 2px 0 #0D0C0B;
}

.st-chip:hover {
  background: #33302B;
}

.st-chip__k {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-osd);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.st-chip__v {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.st-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

/* glove dialog */

.st-glovebox {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-6) var(--s-4) var(--s-5);
}

.st-glovebox__text {
  display: grid;
  align-content: start;
  gap: var(--s-3);
}

.st-receipt {
  justify-self: center;
  width: min(100%, 14rem);
  height: auto;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
}

@media (min-width: 48em) {
  .st-dlg--glove {
    width: min(46rem, calc(100% - 3rem));
  }

  .st-glovebox {
    grid-template-columns: minmax(0, 1fr) 15rem;
    align-items: center;
    padding: var(--s-6);
  }

  .st-receipt {
    width: 15rem;
  }
}

/* ---------- site rule sign ---------- */

.st-sign {
  position: relative;
  max-width: 26rem;
  padding: .55rem;
  color: #111;
  background: var(--st-sign);
  border-radius: 8px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), 0 10px 22px rgba(0, 0, 0, .45);
}

.st-sign::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--screws);
  opacity: .9;
}

.st-sign__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: .4rem .9rem .35rem;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--st-sign);
  background: #111;
  border-radius: 4px 4px 0 0;
}

.st-sign__no {
  font-size: 1.75rem;
  letter-spacing: 0;
}

.st-sign__text {
  padding: .75rem .9rem .8rem;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 6.5vw, 2.125rem);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  border: 4px solid #111;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  overflow-wrap: anywhere;
}

.st-sign--s .st-sign__text {
  font-size: 1.375rem;
}

.st-sign__after {
  margin-top: var(--s-3);
  font-size: 1.1875rem;
  color: var(--st-red);
}

/* cab: radio the operator */

.st-call {
  display: grid;
  gap: var(--s-2);
  max-width: 26rem;
}

.st-call__line {
  color: var(--label);
}

.st-call__a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 3.75rem;
  padding: var(--s-2) var(--s-4);
  color: var(--label);
  text-decoration: none;
  background: var(--brushed), linear-gradient(to bottom, var(--metal-hi), var(--metal) 40%, var(--metal-lo));
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 3px 0 #0D0C0B, 0 8px 16px rgba(0, 0, 0, .4);
}

.st-call__a:hover {
  color: var(--accent);
}

.st-call__a > .ic {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}

.st-call__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}

.st-call__k {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-osd);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--label-muted);
}

.st-call__k::before {
  content: '';
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #5FD068;
  box-shadow: 0 0 6px rgba(95, 208, 104, .7);
}

.st-call__v {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.05;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #EDE6D7;
}

.st-call__go {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--label-muted);
}

/* ---------- place pages ---------- */

.st-place {
  display: grid;
  gap: var(--s-6);
}

@media (min-width: 64em) {
  .st-place {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .st-place--land {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.st-place__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .55);
}

.st-place--land .st-place__photo {
  aspect-ratio: 4 / 3;
}

.st-place__cam {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.st-place__cam .dymo {
  position: relative;
  text-decoration: none;
}

.st-place__cam .dymo::after {
  content: '';
  position: absolute;
  inset: -.75rem -.35rem;
}

.st-place__rec {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .4rem;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-osd);
  letter-spacing: .1em;
  color: var(--osd);
  background: var(--osd-scrim);
  border-radius: 2px;
}

.st-place__rec::before {
  content: '';
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--rec-osd);
  animation: st-blink 1.2s steps(2) infinite;
}

@keyframes st-blink {
  50% { opacity: .2; }
}

.st-place__info {
  display: grid;
  gap: var(--s-5);
  min-width: 0;
}

.st-place__text {
  font-size: 1.0625rem;
}

.st-inv {
  max-width: 28rem;
  padding: var(--s-4) var(--s-4) var(--s-4);
  color: var(--paper-ink);
  background: repeating-linear-gradient(to bottom, transparent 0 1.4rem, rgba(29, 59, 143, .12) 1.4rem calc(1.4rem + 1px)), var(--paper);
  border-radius: 2px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
  transform: rotate(-.6deg);
}

.st-inv__h {
  margin-bottom: var(--s-2);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.st-keyplan {
  max-width: 24rem;
  margin: 0;
}

.st-keyplan__paper {
  padding: .25rem;
  background: var(--st-bp);
  border-radius: 2px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
}

.st-keyplan figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-1) var(--s-3);
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: var(--t-osd);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--label-muted);
}

.st-sec {
  margin-top: var(--s-2);
}

.st-sec + .st-sec {
  margin-top: var(--s-7);
}

/* the info column: every block on one width, so the column has one right edge */
.st-place .st-place__info > * {
  width: 100%;
  max-width: 28rem;
}

@media (min-width: 64em) {
  .st-place__photo {
    position: sticky;
    top: var(--s-5);
  }
}

/* related pages (the cab: the machine, the operator) */

.st-rel {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-rel__a {
  min-height: 3.25rem;
}

.st-rel__k {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-osd);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--label-muted);
}

.st-tapes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr));
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-tape {
  display: grid;
  gap: .3rem;
  color: var(--label);
  text-decoration: none;
}

.st-tape img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 4px #0B0A09, 0 0 0 5px var(--bezel-hi), 0 10px 20px rgba(0, 0, 0, .5);
  margin-bottom: .45rem;
}

.st-tape:hover img {
  box-shadow: 0 0 0 4px #0B0A09, 0 0 0 5px var(--accent), 0 10px 20px rgba(0, 0, 0, .5);
}

.st-tape__k {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--t-osd);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.st-tape__v {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: .03em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.st-none {
  font-size: 1.125rem;
  color: var(--label-muted);
}

.st-split {
  display: grid;
  gap: var(--s-5);
  align-items: start;
}

@media (min-width: 48em) {
  .st-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.st-split__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .5);
}

.st-split__photo--land {
  aspect-ratio: 4 / 3;
}

.st-split__text {
  display: grid;
  gap: var(--s-4);
  min-width: 0;
}

.st-split__text .pg-h2 {
  margin: 0;
}

.st-split__text .st-found li {
  color: var(--label);
}

/* home */

.st-house {
  display: grid;
  gap: var(--s-2);
  max-width: 26rem;
  padding: var(--s-4);
  background: var(--brushed), linear-gradient(to bottom, var(--metal-hi), var(--metal) 40%, var(--metal-lo));
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 18px rgba(0, 0, 0, .45);
}

.st-house__k {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #EDE6D7;
}

.st-house__v {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--lcd);
  text-shadow: 0 0 8px rgba(207, 228, 255, .45);
}

.st-house__bar {
  display: block;
  width: 100%;
  height: .875rem;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px #000;
}

.st-house__track { fill: var(--lcd-bg); }
.st-house__fill { fill: var(--accent); }

.st-house__note {
  color: var(--label);
}

.st-house--s {
  padding: var(--s-3);
  color: var(--label);
}

.st-yard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-yard__photo {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: var(--s-3);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
}

.st-yard__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #EDE6D7;
}

.st-yard__line {
  color: var(--label-muted);
}

/* pallets: found slip */

.st-slip {
  max-width: 44rem;
  overflow: hidden;
}

.st-slip__list {
  display: grid;
  margin: var(--s-3) 0 0;
  padding: 0;
  list-style: none;
}

.st-slip__list li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0 var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--paper-line);
}

.st-slip__n {
  grid-row: span 2;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--ink-red);
}

.st-slip__list li > span:nth-child(2) {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.st-slip__s {
  font-size: .9375rem;
  color: var(--paper-muted);
}

.st-slip__s a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  color: var(--paper-ink);
}

.st-slip__stamp {
  position: absolute;
  right: var(--s-5);
  bottom: var(--s-5);
}

@media (max-width: 37.49em) {
  .st-slip__stamp {
    position: static;
    margin-top: var(--s-4);
  }
}

/* walk nav */

.st-walknav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-7);
}

.st-walknav__a {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 3.75rem;
  padding: var(--s-2) var(--s-3);
  color: var(--label);
  text-decoration: none;
  background: var(--brushed), linear-gradient(to bottom, var(--metal-hi), var(--metal) 40%, var(--metal-lo));
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 3px 0 #0D0C0B, 0 8px 16px rgba(0, 0, 0, .4);
}

.st-walknav__a:hover {
  color: var(--accent);
}

.st-walknav__a > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.st-walknav__a--next {
  justify-content: flex-end;
  text-align: right;
}

.st-walknav__a--plan {
  grid-column: 1 / -1;
  order: -1;
  justify-content: center;
}

.st-walknav__k {
  font-family: var(--f-mono);
  font-size: var(--t-osd);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--label-muted);
}

.st-walknav__v {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

@media (min-width: 48em) {
  .st-walknav {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .st-walknav__a--plan {
    grid-column: auto;
    order: 0;
    padding-inline: var(--s-5);
  }
}

/* ---------- locker ---------- */

.st-lockerwrap {
  display: grid;
  gap: var(--s-7);
  align-items: start;
}

@media (min-width: 64em) {
  .st-lockerwrap {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.st-locker {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  padding: var(--s-6) var(--s-4) var(--s-6);
  background:
    var(--brushed),
    linear-gradient(90deg, #42494D, #6A7276 16%, #5A6266 52%, #4D5458 84%, #353B3E);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 2px #24282A,
    inset 0 0 0 7px #5F676B,
    inset 0 0 0 9px #2B2F31,
    0 24px 48px rgba(0, 0, 0, .6);
  transform-origin: left center;
  transition: transform .7s var(--ease);
}

.st-locker::after {
  content: none;
  position: absolute;
  top: 46%;
  right: .9rem;
  width: .7rem;
  height: 5.5rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #22272A, #8D9599 45%, #3A4044);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

@media (min-width: 30em) {
  .st-locker::after {
    content: '';
  }
}

@media (min-width: 64em) {
  .st-locker {
    max-width: 34rem;
    padding: var(--s-7) var(--s-6);
  }

  .st-dial__win {
    width: 4rem;
    height: 7.5rem;
  }

  .st-dial__btn {
    width: 4rem;
  }
}

.st-locker--open {
  transform: perspective(1400px) rotateY(-32deg);
}

.st-locker__vents {
  width: 62%;
  height: 4.25rem;
  margin: 0 auto var(--s-4);
  border-radius: 3px;
  background: repeating-linear-gradient(to bottom, #1A1D1F 0 .3rem, #858D91 .3rem calc(.3rem + 1px), transparent calc(.3rem + 1px) .8rem);
  opacity: .9;
}

.st-locker__name {
  text-align: center;
}

.st-locker__name .dymo {
  font-size: .8125rem;
}

.st-locker__sticker {
  position: absolute;
  top: 1.5rem;
  right: 1.25rem;
  display: grid;
  place-content: center;
  width: 4rem;
  height: 4rem;
  font-family: var(--f-display);
  font-weight: 800;
  line-height: .9;
  text-align: center;
  text-transform: uppercase;
  color: #111;
  background: var(--st-sign);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #111, 0 2px 4px rgba(0, 0, 0, .4);
  transform: rotate(12deg);
}

.st-locker__sticker span:last-child {
  font-size: 1.75rem;
}

.st-locker__tape {
  max-width: 24rem;
  margin: var(--s-5) auto var(--s-5);
  padding: .75rem 1.25rem;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: #1E1B16;
  background: linear-gradient(rgba(255, 255, 255, .25), rgba(0, 0, 0, .05)), #E6DAB0;
  clip-path: polygon(0 4%, 3% 0, 97% 3%, 100% 0, 99% 50%, 100% 97%, 96% 100%, 4% 96%, 0 100%, 1% 50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
  transform: rotate(-1.4deg);
}

.st-lock {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  max-width: 21rem;
  margin: 0 auto;
  padding: var(--s-4);
  background: linear-gradient(to bottom, #2C2E30, #131415);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 2px #000, 0 10px 20px rgba(0, 0, 0, .55);
}

.st-lock__dials {
  display: flex;
  justify-content: center;
  gap: var(--s-3);
}

.st-dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}

.st-dial__btn {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: var(--hit);
  color: var(--label);
  background: linear-gradient(to bottom, #3A3732, #2A2824);
  border: 0;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 0 #0D0C0B;
  cursor: pointer;
}

.st-dial__btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.st-dial__ic {
  width: 1.25rem;
  height: 1.25rem;
  transform: rotate(90deg);
}

.st-dial__win {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 6.75rem;
  overflow: hidden;
  font-family: var(--f-mono);
  font-weight: 600;
  color: #1B1408;
  background: linear-gradient(to bottom, #2A2216, #B88E44 22%, #F6DC9B 50%, #B88E44 78%, #2A2216);
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px #000, inset 0 10px 10px rgba(0, 0, 0, .55), inset 0 -10px 10px rgba(0, 0, 0, .55);
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.st-dial__win::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2.5rem;
  transform: translateY(-50%);
  border-top: 1px solid rgba(0, 0, 0, .45);
  border-bottom: 1px solid rgba(0, 0, 0, .45);
  pointer-events: none;
}

.st-dial__n {
  line-height: 1.6rem;
}

.st-dial__n--prev,
.st-dial__n--next {
  font-size: 1rem;
  opacity: .45;
  transform: scaleY(.72);
}

.st-dial__n--cur {
  font-size: 1.75rem;
  line-height: 2.5rem;
}

.st-dial__win[data-roll] .st-dial__n {
  animation: st-roll .14s ease-out;
}

@keyframes st-roll {
  from { transform: translateY(calc(var(--st-dir, 1) * -.6rem)); opacity: .4; }
}

.st-lock__pull {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-width: 10rem;
  min-height: 3.25rem;
  padding: 0 var(--s-5);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1A1A1A;
  background: linear-gradient(to bottom, #E8EBEC, #A9AFB2 45%, #7E8588 55%, #C9CED0);
  border: 0;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 #fff, 0 4px 0 #2A2D2F, 0 8px 16px rgba(0, 0, 0, .5);
  cursor: pointer;
}

.st-lock__pull:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 #2A2D2F;
}

.st-lock__pull .ic {
  width: 1.25rem;
  height: 1.25rem;
}

.st-lock--shake {
  animation: st-shake .45s ease-in-out;
}

@keyframes st-shake {
  20% { transform: translateX(-8px) rotate(-1deg); }
  40% { transform: translateX(7px) rotate(1deg); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

.st-lock__msg {
  min-height: 1.6em;
  margin-top: var(--s-4);
  font-size: 1.0625rem;
  text-align: center;
  color: #F2EEE6;
  text-shadow: 0 1px 2px #000;
}

.st-lockerside {
  display: grid;
  gap: var(--s-4);
}

.st-lockernote .pg-stamp {
  margin-top: var(--s-4);
}

/* inside the locker */

.st-inside {
  display: grid;
  gap: var(--s-7);
  align-items: start;
}

@media (min-width: 64em) {
  .st-inside {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  }
}

.st-inside__door {
  padding: var(--s-6) var(--s-4);
  background:
    var(--brushed),
    linear-gradient(90deg, #353B3E, #5A6266 30%, #4D5458 70%, #2F3437);
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px #24282A, inset 0 0 30px rgba(0, 0, 0, .55), 0 20px 44px rgba(0, 0, 0, .55);
}

.st-inside__poster {
  position: relative;
  display: block;
  max-width: 19rem;
  margin: 0 auto;
  color: inherit;
  text-decoration: none;
  container-type: inline-size;
}

.st-inside__poster::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: -.6rem;
  left: 50%;
  width: 6rem;
  height: 1.4rem;
  margin-left: -3rem;
  background: rgba(233, 221, 172, .8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transform: rotate(-3deg);
}

.st-mini {
  display: flex;
  flex-direction: column;
  gap: 1.2cqw;
  width: 100%;
  aspect-ratio: 210 / 297;
  padding: 7cqw 7cqw;
  overflow: hidden;
  color: #111;
  background: var(--st-sign);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .55);
  transform: rotate(-1.6deg);
  transition: transform .2s var(--ease);
}

.st-inside__poster:hover .st-mini {
  transform: rotate(0) scale(1.02);
}

.st-mini__h {
  margin-bottom: 2cqw;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 14cqw;
  line-height: .9;
  text-transform: uppercase;
}

.st-mini__r {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 4.3cqw;
  line-height: 1.15;
  text-transform: uppercase;
  border-bottom: .4cqw solid #111;
  padding-bottom: .8cqw;
}

.st-inside__take {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--hit);
  margin-top: var(--s-5);
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #F2EEE6;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.st-inside__take .ic {
  width: 1.25rem;
  height: 1.25rem;
}

.st-inside__shelf {
  display: grid;
  gap: var(--s-5);
}

.st-inv-paper__note {
  margin-top: var(--s-4);
  font-size: 1.125rem;
}

.st-inv-paper .pg-stamp {
  position: absolute;
  right: var(--s-5);
  bottom: var(--s-5);
}

.st-inv-paper .st-inv-paper__note {
  padding-right: 5.5rem;
}

.st-inside__gear {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  max-width: 30rem;
  color: var(--label);
}

.st-inside__gear .ic {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}

.st-inside__gear > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .5rem;
  padding-top: .1rem;
}

.st-inside__gear .pg-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
}

/* ---------- poster ---------- */

.st-poster-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
}

.st-poster {
  position: relative;
  width: 100%;
  max-width: 40rem;
  margin: var(--s-6) auto 0;
  aspect-ratio: 210 / 297;
  color: #111;
  background: var(--st-sign);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .6);
  container-type: inline-size;
}

.st-poster__in {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 5cqw 6cqw 4cqw;
  overflow: hidden;
}

.st-poster__band {
  flex: none;
  height: 4.5cqw;
  margin: 0 -6cqw;
  background: repeating-linear-gradient(-45deg, #111 0 3cqw, var(--st-sign) 3cqw 6cqw);
}

.st-poster__h {
  margin: 3.5cqw 0 2.5cqw;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 13.5cqw;
  line-height: .88;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #111;
}

.st-poster__list {
  flex: 1;
  display: grid;
  align-content: start;
  gap: .8cqw;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: st-rule;
}

.st-poster__list li {
  display: grid;
  grid-template-columns: 7.5cqw minmax(0, 1fr);
  align-items: baseline;
  padding-bottom: .8cqw;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 3.75cqw;
  line-height: 1.08;
  text-transform: uppercase;
  border-bottom: .35cqw solid rgba(17, 17, 17, .85);
  counter-increment: st-rule;
}

.st-poster__list li::before {
  content: counter(st-rule);
  font-weight: 800;
  font-size: 4.6cqw;
  line-height: 1;
}

.st-poster__list li:last-child {
  color: #9E1F17;
  border-bottom: 0;
}

.st-poster__sig {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2cqw;
  margin: 1.5cqw 0 2.5cqw;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 2.2cqw;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.st-poster__hand {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 5cqw;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-blue);
}

.st-poster__foot {
  margin-top: 2.4cqw;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 2.3cqw;
  letter-spacing: .06em;
  text-align: center;
}

.st-poster-after {
  display: grid;
  justify-items: start;
  gap: var(--s-4);
  max-width: 40rem;
  margin: var(--s-6) auto 0;
}

@media print {
  /* the paper size comes from the print dialog; the poster fits A4 and US Letter */
  @page {
    size: portrait;
    margin: 10mm;
  }

  html,
  body,
  [data-st="poster"] .room {
    background: #fff !important;
  }

  [data-st="poster"] .room::before,
  [data-st="poster"] .plate,
  [data-st="poster"] .keys--dock,
  [data-st="poster"] .foot,
  [data-st="poster"] .pg-skip,
  [data-st="poster"] .st-noprint,
  [data-st="poster"] dialog {
    display: none !important;
  }

  [data-st="poster"] .pg {
    max-width: none;
    padding: 0;
  }

  .st-poster {
    width: 180mm;
    max-width: none;
    height: 255mm;
    margin: 0 auto;
    aspect-ratio: auto;
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .st-poster * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .st-mk__pulse,
  .st-place__rec::before {
    animation: none;
  }

  .st-mk__in,
  .st-locker,
  .st-mini {
    transition: none;
  }

  .st-dlg__in,
  .st-dlg[data-closing] .st-dlg__in,
  .st-lock--shake,
  .st-dial__win[data-roll] .st-dial__n {
    animation: none;
  }
}
