* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  background: #10100f;
  color: #eeece7;
  font-family: Inter, "Helvetica Neue", "Hiragino Sans GB", Arial, sans-serif;
}
body {
  margin: 0;
}
button,
select,
.file {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
select {
  background: none;
  border: 1px solid #50504d;
  border-radius: 4px;
}
button:hover,
select:hover,
.file:hover {
  border-color: #eee;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
.file:focus-within {
  outline: 2px solid #faf6ab;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
[hidden] {
  display: none !important;
}
#app {
  width: min(1450px, 100%);
  margin: auto;
  padding: 0 clamp(14px, 3.4vw, 58px);
}
header,
footer,
.readout,
nav,
.dlgHead,
.brand {
  display: flex;
  align-items: center;
}
header,
footer {
  justify-content: space-between;
}
header {
  height: clamp(62px, 8vh, 84px);
}
.brand {
  gap: 14px;
}
.brand b {
  font:
    900 27px/1 Arial,
    sans-serif;
  letter-spacing: -2px;
}
.brand span,
.dim,
footer {
  color: #a8a8a4;
}
.brand span,
button,
select,
.file {
  font-size: 14px;
}
.link {
  border: 0;
  color: #cdcdc7;
  padding: 10px 0;
}
.link:hover,
a:hover {
  color: #fff;
}
#theater {
  position: relative;
  isolation: isolate;
  background: #030303;
  width: 100%;
  height: min(67vh, 49vw);
  min-height: 280px;
  border: 2px solid #e5e4df;
  overflow: hidden;
}
#art,
#curtain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#curtain {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 6.7vw, 108px);
  pointer-events: none;
}
.pitch {
  font-weight: 600;
}
.pitch > div {
  font-size: clamp(13px, 1.45vw, 21px);
  letter-spacing: 0.04em;
}
.pitch h1 {
  font:
    900 clamp(70px, 10vw, 175px) / 0.92 Arial,
    sans-serif;
  letter-spacing: -0.085em;
  margin: 14px 0 20px;
}
.pitch p {
  font-size: clamp(14px, 1.35vw, 20px);
  font-weight: 450;
}
#start {
  margin-top: 16px;
  padding: 12px 18px;
  border: 0;
  background: #f4f3ef;
  color: #111;
  font-weight: 750;
  pointer-events: auto;
}
#start span {
  margin-left: 24px;
}
.readout {
  justify-content: space-between;
  margin: 19px 0 4px;
  gap: 12px;
}
.readout strong {
  font-size: 15px;
}
.readout span {
  font:
    13px ui-monospace,
    monospace;
  color: #bbb;
}
.seek {
  display: block;
}
#seek {
  width: 100%;
  margin: 0;
  accent-color: #f2f1eb;
  height: 22px;
  cursor: pointer;
}
nav {
  gap: 7px;
  flex-wrap: wrap;
}
nav button,
nav select,
.file {
  min-height: 38px;
  padding: 7px 13px;
}
button[aria-pressed="true"] {
  background: #e9e8e4;
  color: #161616;
}
.spacer {
  flex: 1;
}
#notice,
#localStatus {
  color: #c3c3bc;
  font-size: 13px;
}
#notice:empty {
  display: none;
}
#notice {
  margin: 10px 0;
}
footer {
  padding: 28px 0 18px;
  font-size: 12px;
}
footer a {
  text-decoration: none;
}
#footage {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  background: black;
}
#film {
  transform-origin: 0 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 426px;
  height: 240px;
  max-width: none;
}
dialog {
  background: #191918;
  color: #eee;
  border: 1px solid #64645f;
  padding: 22px;
  width: min(540px, 92vw);
  max-height: 85dvh;
  border-radius: 5px;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #000b;
}
.dlgHead {
  justify-content: space-between;
  margin-bottom: 12px;
}
.dlgHead h2 {
  margin: 0;
  font-size: 21px;
}
.dlgHead button {
  width: 34px;
  height: 34px;
  font-size: 22px;
}
dialog p {
  line-height: 1.75;
  font-size: 14px;
  color: #d1d0ca;
}
.file {
  display: inline-flex;
  border: 1px solid #74736f;
  border-radius: 3px;
  align-items: center;
}
#file {
  max-width: 100%;
  display: block;
  margin: 10px 0;
}
.file + input::file-selector-button {
  display: none;
}
#moves {
  display: grid;
}
#moves button {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  text-align: left;
  align-items: center;
  border-width: 1px 0 0;
  border-color: #424240;
  border-radius: 0;
  gap: 10px;
  padding: 11px 2px;
}
#moves button:hover {
  background: #30302d;
}
#moves b {
  font-size: 17px;
}
#moves span,
#moves small {
  color: #bab9b4;
}
#views button {
  margin: 3px;
  padding: 8px;
}
.sr {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#app:fullscreen,
#app.fullscreen {
  background: #050505;
  width: 100%;
  max-width: none;
  height: 100dvh;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
}
#app:fullscreen main,
#app.fullscreen main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
#app:fullscreen #theater,
#app.fullscreen #theater {
  flex: 1;
  min-height: 0;
  height: auto;
}
#app:fullscreen header,
#app:fullscreen footer,
#app.fullscreen header,
#app.fullscreen footer {
  display: none;
}
#app.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 3;
}
#app:fullscreen .readout,
#app.fullscreen .readout {
  margin: 8px 0 0;
}
@media (max-width: 650px) {
  #theater {
    min-height: 0;
    height: clamp(235px, 62vw, 400px);
  }
  .brand {
    gap: 8px;
  }
  .brand b {
    font-size: 23px;
  }
  .brand span {
    font-size: 12px;
  }
  #curtain {
    padding: 20px;
  }
  .pitch h1 {
    font-size: clamp(58px, 14vw, 83px);
    margin: 10px 0;
  }
  .pitch p {
    max-width: 11em;
  }
  #start {
    margin-top: 6px;
    padding: 9px 12px;
  }
  .readout {
    margin-top: 14px;
  }
  nav {
    gap: 5px;
  }
  nav button,
  nav select {
    padding: 7px 9px;
    font-size: 12px;
  }
  .spacer {
    display: none;
  }
  footer {
    gap: 14px;
    line-height: 1.7;
  }
  .dim {
    display: block;
  }
  #moves b {
    font-size: 15px;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  header {
    height: 38px;
  }
  .brand b {
    font-size: 20px;
  }
  #theater {
    min-height: 0;
    height: calc(100dvh - 141px);
  }
  .readout {
    margin: 4px 0 0;
  }
  footer {
    padding: 8px 0;
  }
  #curtain {
    padding: 20px 46px;
  }
  .pitch h1 {
    font-size: 54px;
    margin: 3px 0;
  }
  .pitch p {
    margin: 5px 0;
  }
  #start {
    margin-top: 3px;
    padding: 6px 12px;
  }
}
.headerTools,
.languages {
  display: flex;
  align-items: center;
  gap: 14px;
}
.languages {
  gap: 0;
}
.languages button {
  border: none;
  background: none;
  color: #949490;
  padding: 7px;
}
.languages button[aria-pressed="true"] {
  color: #fafafa;
  background: none;
  text-decoration: underline;
  text-underline-offset: 5px;
}
#surface {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: none;
  touch-action: manipulation;
}
#result {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  background: #030303;
}
#result strong {
  font-size: clamp(32px, 6vw, 70px);
}
#replay {
  padding: 10px 25px;
}
#app.immersive,
#app.finished {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100dvh;
  max-width: none;
  background: #030303;
  padding: 0;
  display: block;
}
#app.immersive header,
#app.immersive footer,
#app.finished header,
#app.finished footer,
#app.immersive main > :not(#theater),
#app.finished main > :not(#theater) {
  display: none;
}
#app.immersive main,
#app.finished main,
#app.immersive #theater,
#app.finished #theater {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
}
#app.immersive #theater,
#app.finished #theater {
  border: 0;
}
#app.immersive {
  cursor: none;
}
#app.immersive a,
#app.immersive button {
  cursor: none;
}
.pausedBar {
  display: none;
}
#app.inSession:not(.immersive):not(.finished) #curtain {
  display: none;
}
@media (max-width: 500px) {
  .headerTools {
    gap: 7px;
  }
  .languages button,
  .link {
    font-size: 12px;
  }
  .brand span {
    display: none;
  }
}
#filmCue {
  position: absolute;
  z-index: 1;
  background: #000;
  display: grid;
  place-items: center;
  padding-top: 1.5%;
  font-weight: 750;
  text-align: center;
  pointer-events: none;
}
#app:fullscreen:not(.immersive):not(.finished) header,
#app.fullscreen:not(.immersive):not(.finished) header {
  display: flex;
  height: 45px;
  flex-shrink: 0;
}
#result ~ #curtain[hidden] {
  display: none;
}
#app.immersive #surface:focus {
  outline: none;
}
