body {
  background: radial-gradient(ellipse at 70% 2%, #573845, transparent 64%), #292735;
}
.cinema-hero {
  display: flex;
  align-items: center;
  margin: 19px 0 14px;
  min-height: clamp(350px, 35vw, 460px);
  border: 2px solid #b29670;
  border-radius: 15px;
  background:
    linear-gradient(90deg, #372b37 26%, #372b37e8 37%, transparent 57%),
    url(assets/ribbon-cinema.webp) right 48% /68% auto no-repeat,
    #372b37;
}
.cinema-hero > div {
  width: 41%;
  padding: clamp(19px, 3vw, 46px);
}
.cinema-hero h1 {
  font: 700 clamp(46px, 5.2vw, 82px)/0.95 var(--pixel);
  color: #ffe8bc;
  margin: 9px 0;
}
.cinema-hero p {
  margin: 15px 0 21px;
}
.showings,
.cinema-grid {
  display: grid;
  gap: 14px;
}
.showings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.showings a,
.projection-book {
  padding: clamp(13px, 1.7vw, 22px);
  background: #3c323e;
  border: 1.5px solid #917e78;
  border-radius: 11px;
}
.showings a {
  color: #ffefd3;
  text-decoration: none;
  border-top: 4px solid #cf9a83;
}
.showings small,
.slate small {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 950;
}
.showings small {
  color: #edcc9e;
}
.stub {
  float: right;
  border: 1.5px dashed #b99e7c;
  background: #fff0cb;
  color: #584048;
  border-radius: 4px;
  padding: 3px 7px;
  font: 800 0.88rem var(--pixel);
}
.showings h2,
.projection-book h2,
.slate h2 {
  font: 700 clamp(23px, 2.15vw, 32px)/1.1 var(--pixel);
  margin: 6px 0;
}
.showings p,
.slate p {
  margin: 5px 0;
}
.cinema-grid {
  grid-template-columns: minmax(0, 1.8fr) minmax(265px, 1fr);
  align-items: start;
}
#edit-bench {
  border: 3px solid #af8d77;
  border-radius: 12px;
  background: #fbefd8;
  color: #403840;
  padding: clamp(12px, 1.65vw, 23px);
  box-shadow: 0 5px 0 #6d575b;
}
.slate small {
  color: #7c4d49;
}
#edit-bench button {
  background: #fff7df;
  color: #45383c;
  border: 1px solid #a99178;
  border-radius: 6px;
  padding: 7px 9px;
  margin: 2px;
}
#edit-bench button[aria-pressed='true'] {
  background: #436a67;
  border-color: #36514d;
  color: #fff4d8;
}
#edit-bench button.lever {
  background: #ffd494;
  border: 2px solid #946746;
  margin: 8px 2px 4px;
}
#edit-bench fieldset {
  border: 1px solid #b8a08a;
  padding: 5px 8px 8px;
  border-radius: 7px;
  margin: 10px 0;
}
#edit-bench legend,
summary {
  font-weight: 900;
}
#edit-bench a {
  color: #5a485f;
}
#edit-bench details,
.projection-book details {
  margin: 10px 0;
}
#edit-bench summary,
.projection-book summary {
  cursor: pointer;
}
.projection-book li {
  margin: 5px 0;
}
.projection-book h2 {
  display: flex;
  align-items: center;
  gap: 7px;
}
.booth-cat {
  width: 40px;
  height: 40px;
  background: url(assets/koko-idle.webp) 0 0 /400% 100%;
  image-rendering: pixelated;
}
.booth-note {
  margin: 10px 0 0;
  border-top: 1px dashed #b0a18b;
  padding-top: 8px;
}
.tree-plate {
  height: clamp(260px, 22vw, 310px);
  position: relative;
  border: 3px solid #a18b6b;
  border-radius: 12px;
  margin: 10px 0;
  background: radial-gradient(ellipse at 55% 38%, #405956, transparent 80%), #283a40;
}
.tree-plate svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tree-plate line {
  stroke: #a1a5a0;
  stroke-width: 0.57;
}
.tree-plate line.lit {
  stroke: #e6c587;
  stroke-width: 1.1;
}
#edit-bench .frame-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: min(42%, 155px);
  margin: 0;
  padding: 5px;
  background: #37474f;
  color: #f3e7cc;
  border: 1px solid #a8bab5;
}
#edit-bench .frame-node.on {
  background: #79575d;
  border: 2px solid #ecc591;
  color: #fff5d8;
}
.transport,
.clue,
.garden-count {
  font-size: 0.88rem;
  margin: 7px 0;
}
.transport span {
  display: inline-flex;
  background: #72535b;
  border-radius: 4px;
  color: #fff0ce;
  padding: 1px 5px;
  margin: 1px;
}
.transport i {
  color: #896e51;
  font-style: normal;
}
.raw-log ol {
  padding-left: 26px;
  font-size: 0.88rem;
}
.raw-log code {
  color: #603f44;
}
.three-ledgers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 10px 0;
}
.three-ledgers div {
  border: 1px solid #baaa94;
  border-top: 3px solid #936979;
  background: #f1e2c9;
  border-radius: 5px;
  padding: 6px 8px;
  min-width: 0;
}
.three-ledgers div:nth-child(2) {
  border-top-color: #688b81;
}
.three-ledgers div:nth-child(3) {
  border-top-color: #b48b50;
}
.three-ledgers dt {
  font-weight: 950;
  font-size: 0.78rem;
}
.three-ledgers dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}
.film-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 155px;
  padding: 17px clamp(24px, 4vw, 65px);
  margin: 10px 0;
  background: linear-gradient(#f4c093, #c18b89);
  border: 7px solid #50454b;
  border-radius: 9px;
  text-align: center;
  color: #402d39;
  display: grid;
  align-content: center;
  justify-items: center;
}
.film-screen::before,
.film-screen::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 10%;
  background: repeating-linear-gradient(90deg, #713f51 0 9px, #844e5d 9px 17px, #5b3549 17px 20px);
  clip-path: polygon(0 0, 100% 0, 60% 40%, 50% 60%, 60% 100%, 0 100%);
  z-index: -1;
}
.film-screen::after {
  left: auto;
  right: 0;
  transform: scaleX(-1);
}
.film-screen.blue {
  background: linear-gradient(#9ac9cf, #9fa8c1);
}
.film-screen.teal {
  background: linear-gradient(#d3dfb6, #8abaae);
}
.film-screen.paper {
  background: linear-gradient(#efe0b6, #d8c19c);
}
.screen-frame {
  font-size: 0.77rem;
  font-weight: 900;
}
.film-screen p {
  font: 700 clamp(21px, 2vw, 29px)/1.1 var(--pixel);
  margin: 5px;
  max-width: 87%;
}
.screen-cat {
  position: absolute;
  bottom: 2%;
  right: 9%;
  width: 40px;
  height: 40px;
  background: url(assets/michi-wave.webp) 0 0 /300% 100%;
  image-rendering: pixelated;
}
.film-strip {
  position: relative;
  padding: 12px 8px;
  margin: 9px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-radius: 5px;
  background:
    repeating-linear-gradient(90deg, #e4ceab 0 7px, transparent 7px 16px) top 3px left 4px / 100%
      4px no-repeat,
    repeating-linear-gradient(90deg, #e4ceab 0 7px, transparent 7px 16px) bottom 3px left 4px / 100%
      4px no-repeat,
    #3f3740;
}
#edit-bench .film-strip button {
  margin: 0;
  min-width: 44px;
}
.take-list,
.file-pair,
.double-screen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0;
}
.take-list > div,
.file-pair section,
.double-screen section {
  padding: 9px;
  border: 1px solid #b3a28a;
  border-radius: 7px;
  background: #f4e5c8;
  min-width: 0;
}
.take-list p,
.file-pair p,
.double-screen p {
  margin: 4px 0;
  font-size: 0.85rem;
}
.file-pair section {
  background: repeating-linear-gradient(0deg, transparent 0 23px, #d1ba9140 23px 24px), #fff6dc;
}
.file-pair small,
.double-screen small,
.thread-board small {
  display: block;
  font-size: 0.74rem;
  color: #64564e;
  overflow-wrap: anywhere;
}
.file-pair b {
  overflow-wrap: anywhere;
}
.event-strip span {
  padding: 4px 6px;
  background: #524956;
  color: #d8ced0;
  border: 1px solid #7c7480;
  border-radius: 3px;
  font-size: 0.8rem;
}
.event-strip span.seen {
  background: #bbd5bc;
  color: #31453e;
}
.rewind-wheel,
.splice-tools {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 9px 0;
}
.thread-board {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.thread-board article {
  flex: 1 1 125px;
  border-left: 3px solid #876979;
  background: #f1e1c5;
  padding: 5px 8px;
  border-radius: 3px;
}
.thread-board article p {
  margin: 3px 0;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}
.ticket-art {
  padding: 12px 8px;
  border: 2px dashed #866956;
  margin: 7px 0;
  color: #443340;
  background: #edd5b1;
  border-radius: 7px;
}
.ticket-art.coral {
  background: #f2bdac;
}
.ticket-art.violet {
  background: #c6aed6;
}
.ticket-art.slate {
  background: #bfd0c7;
}
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  background: repeating-linear-gradient(90deg, #68435733 0 1px, transparent 1px calc(100% / 12));
  font: 700 0.95rem var(--pixel);
  min-height: 34px;
  align-items: center;
}
.ticket-grid span,
.ticket-grid b {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 29px;
  border: 1px solid #716a60;
  border-radius: 3px;
  background: #f5efcfbd;
}
.ticket-grid b {
  background: #9ebdaaac;
  color: #362e37;
}
.end-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 850px) {
  .cinema-grid,
  .showings {
    grid-template-columns: 1fr;
  }
  .cinema-hero {
    align-items: flex-end;
    padding-top: clamp(190px, 50vw, 340px);
    background:
      linear-gradient(0deg, #372b37 7%, #372b37 32%, transparent 63%),
      url(assets/ribbon-cinema.webp) top center / 100% auto no-repeat,
      #372b37;
  }
  .cinema-hero > div {
    width: 100%;
    padding: 16px;
  }
  .cinema-hero h1 {
    font-size: clamp(39px, 9vw, 56px);
  }
  .cinema-hero p {
    margin: 7px 0 12px;
  }
}
@media (max-width: 540px) {
  #edit-bench button {
    min-height: 40px;
  }
  #edit-bench .frame-node {
    min-height: 34px;
    font-size: 0.82rem;
  }
  .three-ledgers {
    grid-template-columns: 1fr;
  }
  .three-ledgers div {
    display: grid;
    grid-template-columns: 95px 1fr;
    align-items: baseline;
    gap: 4px;
  }
  .three-ledgers dd {
    margin: 0;
  }
  .double-screen section {
    padding: 6px;
  }
  .ticket-art {
    padding: 9px 4px;
  }
  .ticket-grid {
    font-size: 0.71rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .screen-cat {
    animation: ribbon-wave 1.25s steps(3) infinite;
  }
  @keyframes ribbon-wave {
    to {
      background-position: 150% 0;
    }
  }
}
.souvenir {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 5px;
}
.souvenir button,
#edit-bench .souvenir button {
  background: #ffdb9c;
  color: #4b3740;
  border: 2px dashed #976e59;
  border-radius: 7px;
  padding: 8px 12px;
}
.souvenir output {
  font-size: 0.86rem;
}
