@font-face {
  font-family: Archivo;
  src: url("assets/ArchivoBlack-Regular.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url("assets/InstrumentSans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: DM Mono;
  src: url("assets/DMMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7efda;
  --cream: #fff5da;
  --ink: #26352f;
  --quiet: #615e51;
  --red: #c5452e;
  --rule: #b8ac91;
  --green: #b5cfad;
  --mono: "DM Mono",monospace;
  --head: Archivo,"Arial Black",sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font: 16px/1.45 Instrument,Arial,sans-serif;
  background-image: url("assets/grain.png");
}
button,
select {
  font: inherit;
  color: inherit;
}
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button {
  background: none;
  border: 0;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
}
svg {
  width: 1.22em;
  height: 1.22em;
  flex: none;
  display: block;
}
button svg {
  pointer-events: none;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 3px solid #0069ad;
  outline-offset: 3px;
}
[hidden] {
  display: none!important;
}
.defs,
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  z-index: 10;
  left: 10px;
  top: -100px;
  background: var(--cream);
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
.wrap {
  max-width: 1472px;
  margin: 0 auto;
  padding: 0 clamp(22px,4.5vw,78px);
}
.mast,
.identity,
.mast nav,
.mast button,
.scene-picker,
.switches,
.rail-actions,
.rail button,
.deck,
.pad-group,
.pad-pair,
.pad,
.poster,
.stunt-head,
.print-actions,
.primary {
  display: flex;
  align-items: center;
}
.mast {
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1.5px solid var(--ink);
  gap: 20px;
}
.identity {
  gap: 10px;
  line-height: 1;
}
.identity > svg {
  width: 37px;
  height: 37px;
  color: var(--red);
  transform: rotate(-7deg);
}
.identity > a,
.footer-credit > a {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.055em;
  text-decoration: none;
}
.identity > a:hover,
.footer-credit > a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.issue,
.eyebrow,
.group-label,
.set-no,
.counter,
.stunt-head > span,
.dialog-kicker,
#archive-form label,
.print-note,
.measurements {
  font-family: var(--mono);
}
.issue {
  margin-left: 6px;
  padding-left: 16px;
  border-left: 1px solid #a79d87;
  font-size: 11px;
  letter-spacing: .065em;
  color: #645b50;
}
.mast nav {
  gap: 17px;
}
.mast button {
  gap: 7px;
  min-height: 42px;
  font-size: 14px;
  font-weight: 650;
  padding: 6px 3px;
}
.mast button:hover {
  color: var(--red);
}
.mast #sound {
  border: 1px solid #867f6c;
  min-height: 37px;
  padding: 6px 12px;
  border-radius: 4px;
}
.bill {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(23px,2.45vw,39px) 0 clamp(23px,2.2vw,35px);
}
.eyebrow,
.dialog-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .12em;
  font-weight: 400;
}
.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
}
.stripes {
  display: inline-block;
  width: 31px;
  height: 10px;
  background: repeating-linear-gradient(-62deg,transparent 0px,transparent
    3px,var(--red) 3px,var(--red) 7px);
  transform: skew(-3deg);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: var(--head);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.088em;
  text-transform: uppercase;
  font-size: clamp(49px,6.3vw,97px);
  white-space: nowrap;
}
h1 em {
  display: inline-block;
  font-style: normal;
  color: var(--red);
  transform: rotate(-2deg) skewX(-8deg);
  margin-left: .005em;
  filter: drop-shadow(1px 2px 0 var(--cream)) drop-shadow(1.5px 1.5px 0
    var(--ink));
}
.pitch {
  font-size: clamp(15px,1.29vw,19px);
  line-height: 1.38;
  letter-spacing: -.015em;
  font-weight: 510;
  max-width: 275px;
  margin-bottom: 2px;
}
.theatre {
  border: 2px solid var(--ink);
  border-radius: 7px;
  box-shadow: 4px 5px 0 #81765c;
  overflow: clip;
  background: var(--ink);
}
.rail {
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 51px;
  padding: 4px 17px;
}
.scene-picker {
  gap: 12px;
  min-width: 0;
}
.clap {
  width: 24px;
  height: 24px;
  color: #f8d486;
}
.set-no {
  font-size: 10px;
  letter-spacing: .07em;
  color: #dfd9be;
  white-space: nowrap;
}
.scene-picker h2 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.04em;
  border-left: 1px solid #7b8072;
  padding-left: 13px;
  white-space: nowrap;
}
.switches {
  gap: 1px;
}
.rail button {
  color: var(--cream);
  justify-content: center;
  gap: 6px;
  border-radius: 3px;
  min-height: 35px;
  font-size: 13px;
  font-weight: 600;
}
.rail button:hover,
.rail button:focus-visible {
  background: #47574c;
}
.rail button:focus-visible {
  outline-color: #f7d66a;
  outline-offset: 0;
}
.switches button {
  width: 34px;
}
.switches svg {
  width: 15px;
  height: 15px;
}
.rail-actions {
  gap: 10px;
}
.rail-actions button {
  padding: 4px 8px;
}
.rail-actions svg {
  height: 16px;
  width: 16px;
}
.screen {
  position: relative;
  isolation: isolate;
  background: #b6ccc0;
  border-block: 1px solid #151d17;
}
#stage {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200/420;
  touch-action: none;
  cursor: crosshair;
  outline-offset: -4px;
}
#stage[data-hover="piece"] {
  cursor: grab;
}
#stage[data-hover="grip"] {
  cursor: grabbing;
}
#stage:focus-visible {
  outline: 3px dashed #186c94;
  outline-offset: -5px;
}
.counter {
  position: absolute;
  right: 13px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff4d6f2;
  border: 1px solid #827657;
  box-shadow: 1px 2px 0 #55614b4f;
  padding: 4px 8px 3px;
  color: #3e4439;
  transform: rotate(2deg);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: .08em;
  pointer-events: none;
}
.counter i {
  width: 6px;
  height: 6px;
  display: block;
  background: var(--red);
  border-radius: 50%;
}
.status-toast {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: max-content;
  max-width: 90%;
  border: 1.5px solid var(--ink);
  background: #fff2c9;
  box-shadow: 2px 2px var(--ink);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 650;
  text-align: center;
  padding: 7px 12px;
  pointer-events: none;
}
#resume {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%,-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  padding: 11px 17px;
  font-weight: 700;
  border-radius: 3px;
  box-shadow: 3px 3px var(--ink);
}
.deck {
  gap: 18px;
  min-height: 74px;
  padding: 11px 18px;
  background-color: #e9d9b7;
  background-image: url("assets/grain.png");
  border-top: 1px solid #b3a382;
}
.walk {
  gap: 10px;
  border-right: 1px solid #b3a386;
  padding-right: 17px;
}
.group-label {
  font-size: 10px;
  letter-spacing: .09em;
}
.pad-pair,
.actions {
  gap: 7px;
}
.pad,
.poster,
.primary,
.print-actions > button,
.archive-controls button {
  min-height: 41px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-weight: 700;
  justify-content: center;
}
.pad {
  gap: 7px;
  min-width: 103px;
  padding: 5px 12px;
  background: var(--cream);
  box-shadow: 1px 3px 0 #665d46;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}
.pad svg {
  width: 20px;
  height: 20px;
}
.move {
  padding: 6px;
  width: 43px;
  min-width: 0;
}
.move svg {
  width: 17px;
  height: 17px;
}
#stomp {
  background: #ed916f;
}
#roar {
  background: #e9c667;
}
#toss {
  background: #b5cbb2;
}
kbd {
  font: 11px/1 var(--mono);
  border: 1px solid #7e7a62;
  border-radius: 2px;
  padding: 2px 4px;
}
.pad kbd {
  font-size: 10px;
  opacity: .85;
}
.pad:active,
.pad.pressed,
.primary:active {
  transform: translate(1px,2px);
  box-shadow: 0 1px 0 var(--ink);
}
.pad:hover,
.poster:hover,
.primary:hover,
.archive-controls button:hover {
  filter: brightness(1.05);
}
.pad:disabled {
  opacity: .55;
}
.poster {
  margin-left: auto;
  gap: 7px;
  background: #f7ebcd;
  min-height: 38px;
  padding: 7px 12px;
  font-size: 13px;
}
.play-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--quiet);
}
.workbench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 22px 0 28px;
  padding: 19px 0 0;
  border-top: 1px dashed #aa9c81;
}
.stunts {
  border-left: 1px dashed #b4a788;
  padding-left: clamp(20px,3.5vw,58px);
}
.prop-box #props {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}
#props button {
  border: 1px solid #ac9e80;
  background: #fbf2dc;
  border-radius: 4px;
  min-width: 69px;
  padding: 4px 6px 5px;
  font-weight: 650;
  font-size: 12px;
  line-height: 1.1;
  box-shadow: 1px 2px 0 #bcaf92;
}
#props button:hover,
#props button:focus-visible {
  background: #ffedb9;
}
#props button:active {
  transform: translateY(1px);
  box-shadow: none;
}
#props button:disabled {
  opacity: .55;
}
#props canvas {
  display: block;
  width: 53px;
  height: 36px;
  margin: 0 auto 2px;
}
.stunt-head > .box-note {
  border: 0;
  padding: 0;
  font: 13px Instrument;
  color: var(--quiet);
}
.stunt-head {
  gap: 9px;
}
.stunt-head > svg {
  width: 23px;
  height: 23px;
  color: var(--red);
}
.stunt-head > h2 {
  font-size: 21px;
  letter-spacing: -.05em;
}
.stunt-head > span {
  font-size: 10px;
  color: var(--quiet);
  padding: 2px 5px;
  border: 1px solid #ac9f82;
  white-space: nowrap;
}
#goals {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 5px;
}
#goals li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.check {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #928669;
  border-radius: 2px;
  background-color: #fff5dc;
  font: 700 13px/1 Instrument;
}
li.done .check {
  background: #37775c;
  color: #fff5dc;
  border-color: #37775c;
  transform: rotate(-5deg);
}
.storage-note {
  font-size: 13px;
  color: var(--quiet);
  margin-bottom: 15px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border-top: 1.5px solid var(--ink);
  padding: 24px 0 31px;
}
.footer-credit > a {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.footer-credit p,
#archive-note {
  font-size: 12px;
  margin-top: 5px;
  color: var(--quiet);
}
.footer-credit .measurements {
  font-size: 11px;
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
#archive-form {
  max-width: 100%;
}
#archive-form label {
  display: block;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.archive-controls {
  display: flex;
  gap: 6px;
}
.archive-controls select {
  min-width: 0;
  width: clamp(165px,24vw,336px);
  max-width: 100%;
  background: #fff5dc;
  color: var(--ink);
  border: 1px solid #a5997e;
  padding: 8px 4px;
  font-size: 13px;
  border-radius: 3px;
}
.archive-controls button {
  background: var(--ink);
  color: var(--cream);
  min-height: 35px;
  padding: 5px 12px;
  font-size: 13px;
  white-space: nowrap;
}
dialog {
  background: var(--paper) url("assets/grain.png");
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 6px 7px 0 #252f2899;
  width: min(520px,calc(100% - 32px));
  max-height: 90dvh;
  padding: clamp(20px,3vw,37px);
  overflow-y: auto;
}
dialog::backdrop {
  background: rgba(27,37,31,.66);
}
dialog h2 {
  font: 900 clamp(31px,4.3vw,48px)/1.02 var(--head);
  letter-spacing: -.075em;
  margin: 0 0 15px;
}
dialog p {
  line-height: 1.45;
  margin: 10px 0;
  font-size: 15px;
}
.dialog-kicker {
  font-size: 10px;
  color: var(--red);
  margin: 0 0 10px;
  padding-right: 32px;
}
.close {
  float: right;
  border: 1px solid var(--rule);
  font: 24px/1 Instrument;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  margin: -5px -6px 0 0;
}
.rules {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px 15px;
  margin: 19px 0;
  padding: 17px 0;
  border-block: 1px dashed var(--rule);
}
.rules dt {
  font-weight: 700;
}
.rules dd {
  margin: 0;
  font-size: 14px;
}
.primary {
  background: #ecc575;
  display: inline-flex;
  gap: 14px;
  padding: 8px 17px;
  box-shadow: 2px 2px var(--ink);
}
dialog .primary {
  margin-top: 8px;
}
#poster-dialog {
  width: min(700px,calc(100% - 28px));
}
#print {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #a59476;
}
.print-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.print-actions > button {
  padding: 8px 12px;
  margin: 0;
}
.print-note {
  font-size: 11px;
}
.scrubber {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 18px;
  font-size: 13px;
}
.scrubber button {
  padding: 6px 9px;
  border: 1px solid #af9c79;
  border-radius: 3px;
  min-height: 34px;
  font-weight: 650;
  white-space: nowrap;
}
.scrubber input {
  min-width: 50px;
  flex: 1;
  accent-color: #a83e2d;
}
.scrubber output,
.print-actions small {
  font: 10px var(--mono);
  white-space: nowrap;
}
.scrubber button:disabled,
.print-actions button:disabled {
  opacity: .5;
}
.print-actions small {
  margin-left: 4px;
}
@media (max-width:500px) {
  .scrubber {
    gap: 5px;
    flex-wrap: wrap;
  }
  .scrubber button {
    font-size: 12px;
  }
  .scrubber label {
    font-size: 12px;
  }
  .scrubber output {
    font-size: 9px;
  }
}
.noscript {
  padding: 12px;
  text-align: center;
}
@media (min-width:1500px) {
  .bill {
    padding-block: 37px;
  }
}
@media (max-width:1090px) {
  h1 {
    font-size: 6.3vw;
  }
  .pitch {
    max-width: 233px;
  }
  .deck {
    gap: 12px;
  }
  .actions .pad {
    min-width: 94px;
    padding-inline: 8px;
  }
}
@media (max-width:820px) {
  .wrap {
    padding-inline: 22px;
  }
  .mast {
    min-height: 61px;
  }
  .bill {
    gap: 17px;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 22px;
  }
  h1 {
    font-size: clamp(42px,8.1vw,68px);
  }
  .pitch {
    max-width: none;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 7px;
  }
  #stage {
    aspect-ratio: 2.05;
  }
  .deck {
    padding: 10px;
    gap: 10px;
  }
  .walk {
    gap: 6px;
    padding-right: 9px;
  }
  .group-label {
    display: none;
  }
  .pad {
    font-size: 14px;
  }
  .poster {
    font-size: 12px;
    padding: 6px 8px;
  }
  .workbench {
    gap: 17px;
  }
}
@media (max-width:620px) {
  .wrap {
    padding: 0 15px;
  }
  .mast {
    min-height: 54px;
    gap: 9px;
  }
  .identity {
    gap: 4px;
  }
  .identity > svg {
    width: 29px;
    height: 29px;
  }
  .identity > a {
    font-size: 16px;
  }
  .issue {
    display: none;
  }
  .mast nav {
    gap: 8px;
  }
  .mast button {
    font-size: 12px;
    gap: 4px;
  }
  .mast #sound {
    min-height: 33px;
    padding: 4px 7px;
  }
  .mast nav svg {
    width: 15px;
    height: 15px;
  }
  .bill {
    padding-block: 19px;
    gap: 9px;
  }
  h1 {
    font-size: clamp(28px,8.6vw,54px);
  }
  .pitch {
    font-size: 14px;
    max-width: 40ch;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: .095em;
  }
  .rail {
    padding: 4px 7px;
    gap: 3px;
    min-height: 43px;
  }
  .scene-picker {
    gap: 5px;
  }
  .clap {
    width: 19px;
    height: 19px;
  }
  .set-no {
    font-size: 9px;
    letter-spacing: 0;
  }
  .scene-picker h2 {
    font-size: 16px;
    padding-left: 6px;
  }
  .switches {
    gap: 0;
  }
  .switches button {
    width: 28px;
    min-height: 34px;
  }
  .switches svg {
    width: 13px;
    height: 13px;
  }
  .rail-actions {
    gap: 1px;
  }
  .rail-actions button {
    padding: 4px;
    min-height: 34px;
    min-width: 30px;
  }
  .rail-actions span {
    display: none;
  }
  #stage {
    aspect-ratio: 1.47;
  }
  .counter {
    top: 8px;
    right: 8px;
    font-size: 9px;
    padding: 3px 6px;
  }
  .deck {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 6px;
    padding: 9px 7px 11px;
    min-height: auto;
  }
  .walk {
    border: 0;
    padding: 0;
  }
  .pad-pair {
    gap: 4px;
  }
  .actions {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 5px;
  }
  .pad,
  .actions .pad {
    min-width: 0;
    padding: 5px;
    min-height: 42px;
    font-size: 13px;
    gap: 3px;
  }
  .pad kbd {
    display: none;
  }
  .actions .pad {
    flex-direction: column;
    line-height: 1.1;
  }
  .actions .pad svg {
    width: 16px;
    height: 16px;
  }
  .move {
    width: 35px;
    min-height: 42px;
  }
  .move svg {
    width: 15px;
  }
  .poster {
    display: grid;
    place-items: center;
    width: 41px;
    min-height: 42px;
    margin: 0;
    font-size: 0;
    gap: 0;
    padding: 0;
  }
  .poster svg {
    width: 21px;
    height: 21px;
  }
  .play-note {
    font-size: 12px;
    margin-top: 13px;
    max-width: 54ch;
  }
  .workbench {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 16px 0 21px;
    padding-top: 12px;
  }
  .stunts {
    border-left: none;
    padding: 0;
  }
  .stunt-head h2 {
    font-size: 19px;
  }
  #goals {
    gap: 6px;
  }
  #goals li {
    font-size: 13px;
  }
  .site-footer {
    display: grid;
    gap: 18px;
    padding: 18px 0 25px;
  }
  .archive-controls select {
    width: 100%;
    flex: 1;
  }
  #archive-form {
    width: 100%;
  }
  .archive-controls {
    max-width: 410px;
  }
}
@media (max-width:370px) {
  .wrap {
    padding-inline: 10px;
  }
  .rail .clap {
    display: none;
  }
  .mast button {
    font-size: 11px;
  }
  .deck {
    gap: 4px;
  }
  .move {
    width: 32px;
  }
  .poster {
    width: 34px;
  }
  .status-toast {
    width: 90%;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto!important;
    animation: none!important;
    transition: none!important;
  }
}
