/* The stage is the first viewport. Its controls remain inside native fullscreen. */
#estudio {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
#theater {
  --gutter: clamp(18px, 4.3vw, 78px);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  border-radius: 0;
  box-shadow: none;
  background: #100f18;
}
#theater #screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
#screen:after,
#screen:has(.caption:not([hidden])):after {
  background: linear-gradient(
    180deg,
    rgba(9, 9, 16, 0.66),
    transparent 21%,
    transparent 54%,
    rgba(7, 7, 13, 0.42) 74%,
    rgba(6, 6, 12, 0.93)
  );
}
#theater .frame-top {
  top: max(20px, env(safe-area-inset-top));
  left: var(--gutter);
  right: var(--gutter);
}
.screen-brand {
  color: #fff;
  text-shadow: 0 2px 12px #0b0918;
  font-size: 25px;
}
.screen-brand img {
  box-shadow: 0 2px 15px #0003;
  border-radius: 9px;
}
.frame-tools {
  gap: 8px;
}
.frame-tools .scene-tool,
.frame-tools .glass-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  background: #191620aa;
  backdrop-filter: blur(12px);
  border: 1px solid #ffffff54;
}
.frame-tools .scene-tool {
  font: 650 12px var(--sans);
  padding: 9px 16px;
}
.frame-tools .glass-icon {
  width: 40px;
  height: 40px;
}
.frame-tools .screen-rsvp {
  background: #fbebd9;
  color: #211c25;
  text-shadow: none;
  border-color: transparent;
}
.frame-tools .scene-tool:hover,
.scene-switch button:hover {
  background: #413847;
}
.frame-tools .screen-rsvp:hover {
  background: white;
}
#theater .frame-bottom {
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: var(--gutter);
  right: calc(245px + var(--gutter));
  text-shadow: 0 2px 18px #0c0b13aa;
}
.act-credit {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f6f3f0;
  font: 700 clamp(9px, 0.78vw, 12px) / 1.35 var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.act-credit i {
  height: 1px;
  width: 26px;
  background: var(--world);
}
.act-credit small {
  font: inherit;
  color: inherit;
}
.film-credit {
  font: 500 clamp(12px, 1.1vw, 16px) / 1.25 var(--sans);
  color: #e2dbd7;
  margin-bottom: 11px;
  letter-spacing: 0.015em;
}
#theater .screen .frame-bottom h2 {
  font: 400 clamp(48px, 5.35vw, 94px) / 0.98 var(--event-font);
  letter-spacing: -0.035em;
  margin: 7px 0 0;
  text-wrap: balance;
}
body:is([data-event='salon'], [data-event='pasarela']) #theater .frame-bottom h2 {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: -0.02em;
}
body[data-event='boda'] #theater .frame-bottom h2 {
  font-size: clamp(36px, 4.2vw, 72px);
  max-width: 16em;
}
#screen-caption {
  max-width: 62ch;
  line-height: 1.38;
  margin-top: 7px;
}
#theater .transport {
  position: absolute;
  z-index: 5;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: var(--gutter);
  right: var(--gutter);
  height: 50px;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 14px;
  border-top: 1px solid #ffffff4a;
}
.transport #play,
.transport-btn {
  width: 38px;
  height: 38px;
  flex: none;
}
.transport .clock {
  font-size: 11px;
}
#theater .scene-switch {
  position: absolute;
  right: var(--gutter);
  bottom: calc(83px + env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  align-items: center;
  border: 1px solid #ffffff63;
  border-radius: 30px;
  background: #17141d9e;
  backdrop-filter: blur(10px);
  padding: 2px;
  color: white;
}
.scene-switch select {
  background: transparent;
  border: 0;
  padding: 6px 2px;
  text-align: center;
  color: inherit;
  appearance: none;
  width: auto;
  font: 650 12px var(--sans);
  cursor: pointer;
}
.scene-switch select option {
  color: #211e25;
  background: #fff;
}
.scene-switch button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font: 400 25px/1 var(--sans);
  color: inherit;
  background: transparent;
}
.sr-only {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  white-space: nowrap;
  overflow: hidden;
}
.guest #theater .studio-only,
.editing-mode #theater .studio-only {
  display: none;
}
#theater #birthday-themes {
  position: absolute;
  z-index: 5;
  top: calc(75px + env(safe-area-inset-top));
  right: var(--gutter);
  border-radius: 9px;
  background: #15121dda;
  backdrop-filter: blur(8px);
}
#theater #birthday-themes .kicker {
  font-size: 9px;
}
#event-panel:not([hidden]) {
  position: absolute;
  z-index: 8;
  right: var(--gutter);
  top: 78px;
  max-width: min(650px, 92%);
  max-height: 72%;
  overflow: auto;
  border-radius: 8px;
}
#theater .onstage {
  top: auto;
  left: auto;
  right: var(--gutter);
  transform: none;
  bottom: calc(139px + env(safe-area-inset-bottom));
}
body.guest #theater .onstage {
  bottom: calc(83px + env(safe-area-inset-bottom));
}
#reveal-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font: 400 clamp(72px, 16vh, 160px) / 1 var(--event-font);
  color: #ffedb8;
  text-shadow: 0 2px 25px #321330;
}
#estudio > .intro {
  width: min(1200px, calc(100% - var(--edge) * 2));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 90px) 0;
}
#estudio > .intro:not([hidden]) {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0 clamp(28px, 7vw, 100px);
  align-items: start;
}
#intro .eyebrow,
#guest-intro .eyebrow {
  grid-column: 1/-1;
}
#intro h1,
#guest-intro h1 {
  grid-row: 2/4;
  max-width: 15ch;
  margin-bottom: 0;
}
#intro .lead,
#guest-intro .invite-dateline {
  margin: 24px 0 0;
}
#intro .hero-actions,
#guest-intro .invite-actions {
  margin: 16px 0 0;
}
#intro .hero-actions .text-button {
  white-space: nowrap;
}
.guest #theater .frame-bottom {
  right: var(--gutter);
}
body:has(.editor:not([hidden])) #estudio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: start;
  gap: 0;
  background: #f7f3ec;
}
.editing-mode #estudio #theater {
  height: max(520px, 100dvh);
  position: sticky;
  top: 0;
  order: 0;
}
#estudio .editor {
  padding: clamp(18px, 2.2vw, 36px);
  box-shadow: none;
  border: 0;
  border-radius: 0;
  max-height: 100dvh;
  overflow: auto;
}
.editing-mode #theater .frame-bottom {
  right: var(--gutter);
}

@media (max-width: 750px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  #theater {
    --gutter: clamp(10px, 3.2vw, 16px);
    --left-edge: max(var(--gutter), env(safe-area-inset-left));
    --right-edge: max(var(--gutter), env(safe-area-inset-right));
    --top-edge: max(8px, env(safe-area-inset-top));
    --bottom-edge: max(3px, env(safe-area-inset-bottom));
    --tools-row: calc(var(--top-edge) + 49px);
  }
  #theater .frame-top,
  #theater .transport,
  #theater .frame-bottom,
  body.guest #theater .frame-bottom {
    left: var(--left-edge);
    right: var(--right-edge);
  }
  #theater .frame-top {
    top: var(--top-edge);
    gap: 6px;
  }
  .screen-brand {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    gap: 5px;
    font-size: 18px;
    letter-spacing: -1px;
    flex-shrink: 0;
  }
  .screen-brand img {
    width: 28px;
    height: 28px;
  }
  .frame-tools {
    gap: 4px;
    min-width: 0;
  }
  .frame-tools .scene-tool {
    flex: none;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.13;
    white-space: nowrap;
  }
  .frame-tools .glass-icon,
  #theater .transport button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  body[data-event='boda']:not(.guest) #screen-catalog {
    display: none;
  }
  #theater .frame-bottom {
    bottom: calc(var(--bottom-edge) + 117px);
  }
  #theater .screen .frame-bottom h2,
  body[data-event='boda'] #theater .screen .frame-bottom h2 {
    font-size: clamp(30px, 8.7vw, 49px);
    line-height: 1.01;
    overflow-wrap: anywhere;
  }
  .film-credit {
    font-size: 11px;
    margin-bottom: 4px;
  }
  .act-credit {
    font-size: 9px;
    gap: 5px;
  }
  .act-credit i {
    width: 13px;
  }
  #screen-caption {
    font-size: 12px;
    line-height: 1.32;
  }
  #theater .scene-switch {
    left: var(--left-edge);
    right: auto;
    max-width: calc(100% - var(--left-edge) - var(--right-edge));
    bottom: calc(var(--bottom-edge) + 57px);
    padding: 1px;
  }
  #theater .scene-switch :is(button, select) {
    min-width: 44px;
    min-height: 44px;
  }
  #theater .scene-switch select {
    padding: 6px;
    font-size: 13px;
  }
  #theater .transport {
    gap: clamp(3px, 1.2vw, 8px);
    bottom: var(--bottom-edge);
    height: 51px;
  }
  .transport .clock {
    font-size: 11px;
  }
  #theater #slider {
    height: 44px;
    min-width: 0;
    touch-action: pan-y;
  }
  #slider::-webkit-slider-runnable-track {
    height: 4px;
  }
  #slider::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -7px;
    box-shadow: 0 1px 4px #0008;
  }
  #slider::-moz-range-track {
    height: 4px;
  }
  #slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
  }
  #theater #birthday-themes {
    top: var(--tools-row);
    left: var(--left-edge);
    right: auto;
    width: max-content;
    max-width: calc(100% - var(--left-edge) - var(--right-edge));
    padding: 2px;
    border-radius: 9px;
  }
  #birthday-themes .kicker {
    display: none;
  }
  #birthday-themes #theme-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    gap: 2px;
    margin: 0;
  }
  #birthday-themes .theme-option {
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 auto;
    padding: 4px 5px;
    white-space: nowrap;
    font-size: clamp(10px, 2.76vw, 12px);
  }
  #theater .onstage,
  body.guest #theater .onstage {
    left: auto;
    right: var(--right-edge);
    top: var(--tools-row);
    bottom: auto;
    gap: 2px;
    padding: 2px;
    max-width: calc(100% - var(--left-edge) - var(--right-edge));
  }
  #theater .onstage button {
    min-height: 44px;
    min-width: 44px;
    padding: 6px 9px;
    font-size: 12px;
  }
  #theater:has(#birthday-themes:not([hidden])) .onstage {
    top: calc(var(--tools-row) + 54px);
  }
  body.guest #theater .frame-bottom {
    bottom: calc(var(--bottom-edge) + 59px);
  }
  #theater :is(a, button, select, input):focus-visible {
    outline: 2px solid #ffe6a4;
    outline-offset: 1px;
  }

  #estudio > .intro:not([hidden]) {
    display: block;
  }
  #estudio > .intro {
    padding: 37px 0 27px;
  }
  #intro h1 {
    font-size: clamp(46px, 11.3vw, 68px);
  }
  #intro .lead {
    margin-top: 14px;
  }
  .guest #guest-name {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  #estudio .invite-actions button,
  .guest-actions button,
  #act-list button,
  .modal-close,
  #editor button,
  #modal :is(button, .btn) {
    min-height: 44px;
    min-width: 44px;
  }
  #estudio :is(.invite-actions, .hero-actions) {
    row-gap: 6px;
  }
  #editor :is(input, select, textarea),
  #modal :is(input, select, textarea) {
    font-size: 16px;
    min-height: 44px;
  }
  #editor textarea {
    line-height: 1.4;
  }
  #estudio .editor {
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: 16px max(16px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }
  #editor .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #editor label,
  #modal label {
    min-width: 0;
    font-size: 13px;
  }
  #editor :is(input, textarea, select),
  #modal :is(input, textarea, select) {
    scroll-margin-block: 14px;
  }
  #modal {
    max-height: calc(
      100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))
    );
    overscroll-behavior: contain;
  }
  #modal .modal-inner {
    padding: 26px 20px 22px;
  }
  #modal .modal-close {
    right: 8px;
    top: 8px;
  }
  #modal .kicker {
    max-width: calc(100% - 44px);
  }
  body:has(.editor:not([hidden])) #estudio {
    display: flex;
    flex-direction: column;
  }
  .editing-mode #estudio #theater {
    position: relative;
    top: auto;
    width: 100%;
    /* A focus change during a tap must not move the editor's close button. */
    height: clamp(138px, 42vw, 208px);
    min-height: 0;
  }
  .editing-mode #theater .frame-bottom {
    bottom: calc(var(--bottom-edge) + 53px);
  }
  .editing-mode #theater .frame-top,
  .editing-mode .act-credit,
  .editing-mode .film-credit,
  .editing-mode #screen-caption,
  .editing-mode #theater #birthday-themes,
  .editing-mode #theater .onstage {
    display: none;
  }
  .editing-mode #theater .screen .frame-bottom h2 {
    font-size: 22px;
  }
}

@media (max-width: 382px) {
  body:not(.guest) .screen-brand > span {
    display: none;
  }
  .frame-tools {
    gap: 3px;
  }
  #theater .frame-tools .scene-tool {
    padding-inline: 8px;
  }
}
@media (max-width: 416px) {
  body[data-event='boda']:not(.guest) .screen-brand > span {
    display: none;
  }
}
@media (max-width: 500px) {
  body.guest #scene-tool:not([hidden]) {
    position: absolute;
    top: 49px;
    left: 0;
  }
  body.guest #theater:has(#scene-tool:not([hidden])) .onstage {
    top: calc(var(--tools-row) + 50px);
  }
}
@media (max-width: 350px) {
  body.guest .screen-brand .brand-light {
    display: none;
  }
  body[data-event='boda']:not(.guest) #theater .frame-top {
    gap: 3px;
  }
  body[data-event='boda']:not(.guest) #theater .frame-tools {
    gap: 2px;
  }
  body[data-event='boda']:not(.guest) #theater .frame-tools .scene-tool {
    padding-inline: 4px;
    font-size: 11px;
  }
}
@media (min-width: 520px) and (max-width: 980px) and (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  #theater {
    --top-edge: max(4px, env(safe-area-inset-top));
    --bottom-edge: max(2px, env(safe-area-inset-bottom));
  }
  #theater .frame-bottom {
    right: calc(var(--right-edge) + 236px);
    bottom: calc(var(--bottom-edge) + 53px);
  }
  #theater .screen .frame-bottom h2,
  body[data-event='boda'] #theater .screen .frame-bottom h2 {
    font-size: 29px;
  }
  #theater .scene-switch {
    left: auto;
    right: var(--right-edge);
    bottom: calc(var(--bottom-edge) + 52px);
  }
  #theater .transport {
    height: 47px;
  }
  .film-credit {
    margin-bottom: 2px;
  }
  #screen-caption {
    margin-top: 4px;
  }
  #theater:has(#birthday-themes:not([hidden])) .onstage {
    top: var(--tools-row);
  }
  body:has(.editor:not([hidden])) #estudio {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  }
  .editing-mode #estudio #theater {
    position: sticky;
    top: 0;
    height: 100dvh;
  }
  .editing-mode #theater .frame-bottom {
    right: var(--right-edge);
  }
  .editing-mode #theater .transport {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
    grid-template-rows: 44px 13px;
    align-content: center;
    gap: 0 3px;
    height: 61px;
  }
  .editing-mode #theater .transport button {
    grid-row: 1/3;
    align-self: center;
  }
  .editing-mode #theater #play {
    grid-column: 1;
  }
  .editing-mode #theater #slider {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
  }
  .editing-mode #theater .clock {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  .editing-mode #theater .duration {
    justify-self: end;
  }
  .editing-mode #theater #restart {
    grid-column: 3;
  }
  .editing-mode #theater #sound {
    grid-column: 4;
  }
  .editing-mode #theater .frame-bottom {
    bottom: calc(var(--bottom-edge) + 65px);
  }
  #estudio .editor {
    padding-top: 12px;
  }
}

@media (min-width: 520px) and (max-width: 620px) and (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  #theater {
    --gutter: 10px;
  }
  #birthday-themes .theme-option {
    font-size: 10.5px;
    padding-inline: 4px;
  }
  #theater .onstage button {
    font-size: 11.5px;
    padding-inline: 6px;
  }
}
@media (min-width: 520px) and (max-width: 549px) and (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  #theater:has(#birthday-themes:not([hidden])) .onstage {
    top: calc(var(--tools-row) + 50px);
  }
}
@media (max-height: 500px) and (orientation: landscape) and (pointer: fine) {
  #theater .frame-top {
    top: 7px;
  }
  #theater .frame-bottom {
    bottom: 55px;
  }
  #theater .screen .frame-bottom h2 {
    font-size: 30px;
  }
  #theater .scene-switch {
    left: auto;
    right: var(--gutter);
    bottom: 59px;
  }
  #theater .transport {
    height: 42px;
    bottom: 0;
  }
  .film-credit {
    margin-bottom: 3px;
  }
  #theater #birthday-themes {
    top: 48px;
  }
  #theater .onstage {
    top: 55px;
    bottom: auto;
  }
}
#theater .film-credit {display:flex;align-items:center;gap:10px;flex-wrap:wrap;row-gap:2px}
#film-credit {white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.letter-trigger {pointer-events:auto;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:3px 3px 3px 0;border:0;color:#fff4db;background:transparent;text-shadow:0 1px 6px #1e1724;font:inherit;font-weight:650;text-align:left}
.letter-trigger span {text-decoration:underline;text-underline-offset:.24em;text-decoration-color:#ffffff70}
.letter-trigger:hover span {text-decoration-color:currentColor}
.letter-trigger i,.event-letter header i,#another-story i {display:inline-flex}
.letter-trigger svg {width:17px;height:17px}
#story-ideas {display:flex;align-items:center;gap:14px}
#story-ideas button {font:600 13px var(--sans);min-height:44px;padding:8px 12px;border-radius:6px}
#another-story {display:flex;align-items:center;gap:8px;background:#ece5da;color:#332b30}
#another-story svg {width:16px;height:16px}
#undo-story {background:transparent;text-decoration:underline;color:var(--ink)}
.story-extra {border-block:1px solid var(--line);padding:2px 0}
.story-extra summary {cursor:pointer;font-weight:650;font-size:13px;min-height:44px;line-height:44px}
.story-extra[open] label {margin:8px 0 13px}
.optional-field {font-weight:400;color:var(--muted)}
#modal:has(.event-letter){background:#fbf4e6;color:#362d30}
#modal:has(.event-letter) .modal-inner {padding:clamp(24px,6vw,45px)}
.event-letter header {display:flex;align-items:center;gap:13px;justify-content:space-between;padding:10px 32px 13px 0;border-bottom:1px solid #d2bfa8}
.event-letter header i {width:38px;height:32px;color:#685144}
.event-letter header svg {width:100%;height:100%}
.event-letter time,.event-letter blockquote small {font:650 10px/1.4 var(--sans);letter-spacing:.12em;text-transform:uppercase}
#modal .event-letter h2 {margin:24px 0 16px;overflow-wrap:anywhere;font:italic 400 clamp(40px,7vw,59px)/.98 'Instrument Serif',Georgia,serif}
#modal .event-letter p {margin:0 0 16px;white-space:pre-line;overflow-wrap:anywhere;color:#382f30;font:400 clamp(19px,2vw,24px)/1.32 Cormorant,Georgia,serif}
.event-letter blockquote {border-left:2px solid color-mix(in srgb,var(--letter-accent) 48%,#75583e);padding:4px 0 4px 14px;margin:18px 0 20px}
.event-letter blockquote small,.event-letter blockquote span {display:block;overflow-wrap:anywhere}
.event-letter blockquote small {color:#755b4b;margin-bottom:4px}
.event-letter blockquote span {font:italic 400 20px/1.25 'Instrument Serif',Georgia,serif}
#modal .event-letter footer {display:block;min-height:0;width:auto;margin:18px 0 0;padding:0;border:0;text-align:right;overflow-wrap:anywhere;color:#513746;font:400 clamp(36px,7vw,54px)/1.05 Explora,'Instrument Serif',Georgia,serif}
@media(max-width:750px),(max-height:500px) and (pointer:coarse) {
  #theater .film-credit {gap:6px;margin-bottom:2px}
  #read-letter {min-height:44px;max-width:100%;font-size:12px}
  #read-letter span {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  #film-credit {font-size:10px}
  .editing-mode #theater .film-credit {display:none}
}

#preview-letter {justify-self:start;display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:7px 0;background:transparent;font-size:14px;font-weight:650;text-decoration:underline;text-underline-offset:3px}
#preview-letter svg {width:18px;height:18px}

.directory-link{display:inline-flex;align-items:center;min-height:44px;margin-left:auto;font:650 14px var(--sans);text-decoration:underline;text-underline-offset:.28em}
#feature-start{position:absolute;right:var(--gutter);bottom:calc(154px + env(safe-area-inset-bottom));z-index:4;display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:11px 19px;border-radius:40px;background:#181716;color:#fff;font:650 14px var(--sans);box-shadow:0 1px 9px #0002}
#feature-start svg{width:17px;height:17px;display:block}
#audio-status:not(:empty){position:absolute;z-index:4;top:80px;right:var(--gutter);padding:7px 12px;border-radius:14px;background:#15141be8;color:white;font:600 12px var(--sans)}
#feature-start[hidden],.editing-mode #feature-start{display:none}
#theater[data-world=cisne]{background:#f3f2ee;color:#1a1918}
#theater[data-world=cisne][data-look=original] :is(#stage,#still img){filter:grayscale(1)}
body[data-event=cisne] .moment-card{filter:grayscale(1)}
#theater[data-world=cisne] #screen:after{background:linear-gradient(180deg,#faf9f5ad 0%,transparent 17%,transparent 58%,#fbfaf6cf 81%,#fbfaf6 100%)}
#theater[data-world=cisne] :is(.screen-brand,.frame-bottom,.letter-trigger,.act-credit,.film-credit,#screen-caption){color:#191817;text-shadow:none}
#theater[data-world=cisne] .screen-brand img{filter:grayscale(1)}
#theater[data-world=cisne] .letter-trigger span{text-decoration-color:#676460}
#theater[data-world=cisne] .film-credit{width:fit-content;max-width:100%;padding:0 9px;border:1px solid #34312c32;border-radius:4px;background:#fbfaf4e8}
#theater[data-world=cisne] .frame-tools :is(a,button){background:#fdfcf9e8;color:#191817;border:1px solid #4947439e}
#theater[data-world=cisne] .frame-tools .screen-rsvp{background:#191817;color:#fff}
#theater[data-world=cisne] .act-credit i{background:#191817}
#theater[data-world=cisne] .screen .frame-bottom h2{font-style:italic;font-weight:400}
#theater[data-world=cisne] .transport{color:#171615;border-color:#57555059}
#theater[data-world=cisne] .transport-btn,#theater[data-world=cisne] .transport .clock{color:#171615}
#theater[data-world=cisne] #play{background:#191817;color:#fff}
#theater[data-world=cisne] #slider{--world:#151412}
#theater[data-world=cisne] #slider::-webkit-slider-thumb{background:#171615}
#theater[data-world=cisne] #slider::-moz-range-thumb{background:#171615}
#theater[data-world=cisne] #fallback-sign{font-family:'Instrument Serif',Georgia,serif;background:#fffcf5;color:#191817;border:1px solid #34322e}
.swan-program{background:#f7f6f1;color:#1d1c1a;border-block:1px solid #bfbdb6;padding:clamp(35px,6vw,100px) var(--edge)}
.program-inner{margin:auto;max-width:1110px;display:grid;grid-template-columns:1fr 1.25fr;gap:clamp(28px,7vw,110px)}
.program-title p:first-child{margin-top:0;text-transform:uppercase;letter-spacing:.15em;font:650 12px var(--sans)}
.program-title h2{font:400 clamp(64px,8vw,128px)/.88 'Instrument Serif',Georgia,serif;letter-spacing:-.045em;margin:.2em 0}.program-title h2 em{display:block}
.program-title p:last-child,.program-notes .music-credit{font:500 15px/1.55 var(--sans)}
.program-notes>p:first-child{margin:0;font:400 clamp(24px,3vw,36px)/1.14 'Instrument Serif',Georgia,serif}
.program-acts{list-style:none;margin:22px 0;padding:0;border-top:1px solid #9e9a91}
.program-acts li{display:flex;align-items:baseline;gap:22px;border-bottom:1px solid #c6c2b9;padding:11px 0}
.program-acts time{font:650 12px var(--sans);font-variant-numeric:tabular-nums}
.program-acts :is(strong,span){display:block}.program-acts strong{font:400 25px/1.1 'Instrument Serif',Georgia,serif}.program-acts span{font:400 14px/1.45 var(--sans)}
.program-notes nav{display:flex;gap:8px 16px;flex-wrap:wrap}
.program-notes a,.program-notes nav a{text-decoration:underline;text-underline-offset:.24em}.program-notes nav a{min-height:44px;display:inline-flex;align-items:center;font:650 14px var(--sans)}
.blackout-program{background:#15161a;color:#eeeee3;border-color:#40443a}
.blackout-program .program-title h2{font-family:'Barlow Condensed',Arial,sans-serif;font-weight:600;text-transform:uppercase;letter-spacing:-.04em}
.blackout-program .program-title em{color:#ffc080;font-style:normal}
.blackout-program .program-notes>p:first-child{font-family:var(--sans);font-size:clamp(21px,2.5vw,31px);line-height:1.24}
.blackout-program .program-acts,.blackout-program .program-acts li{border-color:#474a40}
.blackout-program .program-acts strong{font:600 27px/1.1 'Barlow Condensed',Arial,sans-serif}
.blackout-program time{color:#ffc080;font-family:'Space Mono',monospace}
#theater[data-world=apagon] .screen .frame-bottom h2{font-weight:600;text-transform:uppercase;max-width:15em;line-height:.92;letter-spacing:-.025em}
#theater[data-world=apagon] #feature-start{background:#ffc080;color:#171918;border:2px solid #18181c;border-radius:3px;box-shadow:3px 3px 0 #15141a}
#theater[data-world=apagon] #screen-caption.radio-caption:not([hidden]){display:block;width:fit-content;max-width:min(100%,53ch);margin-top:6px;padding:5px 10px;color:#15151b;background:#f5f0df;border:1px solid #201e22;border-left:4px solid #ffc080;box-shadow:2px 2px 0 #121116;text-shadow:none;font-weight:650}
#theater[data-world=apagon] .frame-tools .screen-rsvp{background:#eceee4;color:#181b18}
#theater[data-world=apagon] .onstage button:first-child{background:#ffc080;color:#171918}
#theater[data-world=apagon] #fallback-sign{background:#e1dec9;border:1px dashed #565349;border-radius:2px;color:#272720;font-family:'Barlow Condensed',Arial,sans-serif}
@media(max-width:750px),(max-height:500px) and (pointer:coarse){
  #feature-start{top:calc(var(--top-edge) + 53px);right:var(--right-edge);bottom:auto;min-height:44px;padding:8px 13px;font-size:12px}
  .program-inner{grid-template-columns:1fr;gap:25px}.program-title h2 em{display:inline}
  .directory-link{margin-left:0}
}

/* The three paper panels and the controls have their own rows outside the film. */
#theater[data-world=apagon] {
  display:grid;
  grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr);
  background:#121216;
  color:#f5eedf;
}
#theater[data-world=apagon] #screen {
  grid-row:2; position:relative; inset:auto; height:100%; min-height:0; align-self:stretch;
}
#theater[data-world=apagon] #screen::after,
#theater[data-world=apagon] #screen :is(.frame-top,.frame-bottom,#light-fx) {display:none}
#apagon-strip {
  grid-row:1; display:flex; align-items:stretch; gap:3px; min-width:0;
  padding:calc(4px + env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) 4px max(6px, env(safe-area-inset-left));
  background:#17171b; color:#1c1b20; font-family:var(--sans); border-bottom:1px solid #444046;
}
#apagon-strip[hidden],.rave-dock[hidden] {display:none}
#apagon-strip > * {
  position:relative; min-width:0; height:clamp(47px,6.8vh,60px); border:0; border-radius:0;
  background:#f7f0dc; color:#1d1c20; text-align:left;
  clip-path:polygon(4px 0,100% 0,calc(100% - 4px) 100%,0 100%);
}
.strip-letter {flex:1.35; display:flex; flex-direction:column; justify-content:center; padding:2px clamp(9px,2.2vw,44px)}
#strip-title {display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:italic 750 clamp(16px,2.6vw,30px)/1 'Barlow Condensed',var(--sans); text-transform:uppercase}
#apagon-strip #read-letter {position:static; min-height:0; height:auto; display:flex; width:fit-content; max-width:100%; padding:0; border:0; margin:1px 0 0; font:650 clamp(10px,1.3vw,13px)/1.15 var(--sans); color:#514451; text-shadow:none}
#apagon-strip #read-letter::after {content:""; position:absolute; inset:0}
#apagon-strip #read-letter span {display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-decoration-color:#95818a}
#apagon-strip #read-letter svg {width:12px;height:12px}
.strip-meeting {flex:1; display:grid; align-content:center; padding:0 clamp(8px,2vw,34px); font:600 clamp(11px,1.35vw,15px)/1.25 var(--sans)}
.strip-meeting time {font-weight:800; text-transform:uppercase}
.strip-meeting span,.strip-meeting time {overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#apagon-strip #screen-rsvp {flex:0 0 auto; padding:0 clamp(10px,2.4vw,44px); color:#181519; background:#ffc081; font:750 clamp(12px,1.5vw,17px)/1.05 'Barlow Condensed',var(--sans); text-transform:uppercase; white-space:normal; max-width:26%}
#apagon-strip :is(button:hover,button:focus-visible),#apagon-strip .strip-letter:focus-within {background-color:#fff9e7;box-shadow:inset 0 0 0 3px #b96d41}
#apagon-strip #screen-rsvp:is(:hover,:focus-visible){background-color:#ffd8a9}
.rave-dock {grid-row:3; padding:0 max(10px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(10px,env(safe-area-inset-left));background:#17171b}
.rave-controls,.rave-note {display:flex;align-items:center;gap:7px;min-width:0}
.rave-note {height:38px;border-bottom:1px solid #484149; justify-content:space-between}
#theater[data-world=apagon] .rave-note #screen-caption:not([hidden]) {
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  max-width:none;margin:0;padding:4px 0;border:0;background:transparent;box-shadow:none;color:#eee3cf;text-shadow:none;font:500 clamp(11px,1.15vw,14px)/1.25 var(--sans)
}
#theater .rave-note .scene-switch {position:static;flex:none; margin-left:auto; padding:0;max-width:58%;border:0;background:transparent;backdrop-filter:none}
#theater .rave-note .scene-switch :is(button,select){min-height:32px;height:32px}
#theater .rave-note .scene-switch select{width:100%;max-width:145px;text-overflow:ellipsis;font-size:12px}
#theater .rave-note .scene-switch label{min-width:0}
#theater[data-world=apagon] .rave-controls .transport {position:static;flex:1; height:46px; min-width:0;max-width:none; margin:0; padding:0;border:0;gap:clamp(2px,1vw,12px);transform:none}
#theater[data-world=apagon] .rave-controls #feature-start {position:static;flex:none;min-height:40px;max-width:none;margin:0; padding:5px 12px; box-shadow:none;font-size:12px}
body:not(.editing-mode) #theater:not([data-embedded]) .rave-controls:has(#feature-start:not([hidden])) #play {display:none}
#theater .rave-controls .frame-tools {display:flex;align-items:center;flex:none;gap:3px}
#theater .rave-controls .frame-tools :is(.scene-tool,.glass-icon){border:0;background:transparent;color:#fff1dc;padding:3px 7px;min-height:42px}
#theater .rave-controls .frame-tools .glass-icon{width:42px;min-width:42px}
#theater .rave-controls #slider {min-width:25px}
@media(min-width:560px) {
  .strip-letter {padding-left:calc(clamp(54px,8vw,115px) + 16px)}
  .strip-letter::before {content:"";position:absolute;inset:0 auto 0 0;width:clamp(54px,8vw,115px);background:center 36%/cover url('./media/apagon-1-thumb.webp?v=tira-20261117');filter:grayscale(.6) contrast(1.2);clip-path:polygon(0 0,100% 0,calc(100% - 8px) 100%,0 100%)}
}
@media(max-width:600px) {
  #apagon-strip #read-letter {gap:3px}
  #theater .rave-controls {gap:3px}
  #theater .rave-controls .transport button,#theater .rave-controls .glass-icon {flex:0 0 40px;min-width:40px;width:40px}
  #theater .rave-controls .frame-tools .scene-tool {font-size:11px;min-width:0;padding:3px 4px}
  body:not(.guest) #theater .rave-controls .duration {display:none}
  body:not(.guest) #theater .rave-controls #feature-start {font-size:0;gap:0;padding:0 12px}
  #theater[data-embedded] .rave-controls #feature-start {font-size:0;gap:0;padding:0 12px}
}
@media(max-width:559px) {
  #apagon-strip .strip-letter {
    background-image:linear-gradient(100deg,#f7f0dc 32%,#f7f0dcf0 65%,#f7f0dc94 100%),url('./media/apagon-1-thumb.webp?v=tira-20261117');
    background-size:100% 100%,170% auto;
    background-position:center,50% 46%;
  }
}
@media(max-width:420px) {
  body:not(.guest) #theater .rave-controls #screen-catalog {display:none}
  #theater .rave-controls #feature-start {padding:0 8px;font-size:11px;gap:3px}
  #theater .rave-controls .duration {display:none}
}
@media(max-width:365px) {
  #strip-title {font-size:14px;letter-spacing:-.025em}
  #theater .rave-controls #feature-start {font-size:0;gap:0;padding:0 12px}
}
@media(max-height:500px) {
  #apagon-strip > * {height:43px}
  .rave-note {height:32px}
  .editing-mode #theater .rave-note {display:none}
}
#apagon-strip > .strip-home{
  display:inline-flex;align-items:center;justify-content:center;flex:none;padding:0 clamp(7px,1.5vw,22px);
  font:800 clamp(12px,1.6vw,23px)/1 var(--sans);letter-spacing:-.05em;color:#84252c;text-decoration:none
}
#apagon-strip > .strip-home:focus-visible{outline:3px solid currentColor;outline-offset:-5px}
#theater[data-world=cisne][data-renderer=lite][data-look=atardecer] #still img{filter:sepia(.43) saturate(1.3)}
#theater[data-world=cisne][data-renderer=lite][data-look=nocturno] #still img{filter:sepia(.46) hue-rotate(169deg) brightness(.86)}
