@font-face {
  font-family: DM Sans;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-400-normal.woff2");
}
@font-face {
  font-family: DM Sans;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-500-normal.woff2");
  font-weight: 500;
}
@font-face {
  font-family: DM Sans;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-600-normal.woff2");
  font-weight: 600;
}
@font-face {
  font-family: DM Sans;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-700-normal.woff2");
  font-weight: 700;
}
:root {
  --paper: #faf9f5;
  --card: #fffefa;
  --ink: #203c32;
  --green: #234c3c;
  --red: #973e35;
  --muted: #606b62;
  --line: #dcded5;
  --pale: #edf1e9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button, a, select { touch-action: manipulation; }
button, select, summary { cursor: pointer; }
button { border: 0; background: transparent; }
button:disabled { cursor: default; opacity: .65; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; }
h1, h2, h3, strong, .item-chip { overflow-wrap: anywhere; }
.icon { width: 18px; height: 18px; vertical-align: middle; flex: none; }
.nav-wrap, .page { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.site-head { border-bottom: 1px solid var(--line); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; padding-block: 8px; }
.brand img { display: block; width: 63px; height: auto; }
.nav-wrap nav { display: flex; align-self: stretch; gap: 27px; margin-left: auto; }
.nav-wrap nav a, .help-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-wrap nav a { position: relative; }
.nav-wrap nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-wrap nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--green);
}
.help-link { justify-content: center; width: 36px; height: 40px; padding: 0; }
.help-link .icon { width: 16px; height: 16px; }
.nav-wrap a:hover, .help-link:hover, .link-btn:hover, .text-btn:hover { color: var(--red); }
.page { padding-bottom: 56px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 20px;
}
.section-head h2, .section-head h1 { font-size: clamp(31px, 3vw, 42px); line-height: 1.1; letter-spacing: -.045em; }
.event-name { margin-bottom: 7px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.section-head:has(h1) { margin-top: clamp(30px, 4.5vw, 62px); }
.section-head h1 { font-size: clamp(40px, 4.5vw, 58px); }
.head-actions, .chain-top, .host-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.writing-room {
  max-width: 780px;
  margin: clamp(36px, 6vh, 68px) auto 0;
}
.room-title {
  margin-bottom: clamp(22px, 3vw, 36px);
  font-size: clamp(38px, 4.35vw, 59px);
  letter-spacing: -.055em;
  line-height: 1.04;
  text-wrap: balance;
}
.room-title em { color: var(--red); }
.room-bar, .scene-choices, .sheet-footer, .sheet-meta, .sheet-actions {
  display: flex;
  align-items: center;
}
.room-bar { justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.scene-choices {
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: #eeeee8;
}
.scene-choices button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  border-radius: 5px;
  padding: 5px 13px;
  color: var(--muted);
  font-size: 13px;
}
.scene-choices button[aria-pressed="true"] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px #20382726;
}
.scene-choices button:hover { color: var(--ink); }
.scene-choices .icon { width: 13px; height: 13px; }
.team-select { position: relative; min-width: 0; max-width: 100%; }
.team-select select {
  appearance: none;
  width: 100%;
  padding: 8px 26px 8px 0;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  background: transparent;
  text-overflow: ellipsis;
}
.team-select .icon { position: absolute; pointer-events: none; right: 3px; top: 50%; translate: 0 -50%; width: 15px; }
.sheet {
  padding: clamp(22px, 4vw, 46px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 16px #29382105;
}
.sheet-heading { display: flex; gap: 20px; justify-content: space-between; align-items: center; }
.sheet-heading h2 { font-size: clamp(29px, 3.2vw, 43px); line-height: 1.1; letter-spacing: -.045em; text-wrap: balance; }
.object-stamp {
  position: relative;
  isolation: isolate;
  flex: none;
  display: grid;
  place-items: center;
  width: 75px;
  height: 84px;
  padding: 8px;
  transform: rotate(5deg);
  filter: drop-shadow(0 1px 1px #392c192b);
}
.object-stamp::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f4efdf;
  mask:
    linear-gradient(#000 0 0) center / calc(100% - 8px) calc(100% - 8px) no-repeat,
    radial-gradient(circle at 50% 0, transparent 2px, #000 2.6px) top / 8px 5px repeat-x,
    radial-gradient(circle at 50% 100%, transparent 2px, #000 2.6px) bottom / 8px 5px repeat-x,
    radial-gradient(circle at 0 50%, transparent 2px, #000 2.6px) left / 5px 8px repeat-y,
    radial-gradient(circle at 100% 50%, transparent 2px, #000 2.6px) right / 5px 8px repeat-y;
}
.object-art { display: inline-grid; place-items: center; flex: none; }
.object-art img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.object-stamp .object-art { width: 100%; height: 100%; border: 1px solid #b8af95; font-size: 27px; }
.object-stamp img { object-fit: cover; }
.sheet textarea, .passage-copy {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 6px 0;
  border: none;
  background: transparent;
  font: 20px/1.65 var(--serif);
  color: var(--ink);
}
.sheet textarea { min-height: clamp(142px, 22vh, 225px); resize: vertical; }
.sheet textarea:focus-visible { outline: 1px solid #a1b3a0; outline-offset: 5px; border-radius: 2px; }
.sheet textarea::placeholder { color: #757a70; }
.passage-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.sheet-message { margin: 18px 0; color: var(--muted); }
.sheet-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.sheet-footer > :only-child { margin-inline-start: auto; }
.sheet-status, .timer { display: inline-flex; align-items: center; gap: 6px; }
.sheet-meta, .sheet-actions { flex-wrap: wrap; gap: 4px 14px; }
.sheet-meta, .sheet-status, #char-count { font-size: 12px; color: var(--muted); }
.timer { color: var(--muted); font-variant-numeric: tabular-nums; }
.timer .icon, .sheet-status .icon, .tip-row .icon { width: 15px; height: 15px; }
.timer.expired { color: var(--red); }
.small, .tip-row { color: var(--muted); font-size: 12px; }
.panel { border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.chain-top small, .host-title small {
  display: block;
  color: var(--red);
  font: 600 10px/1.5 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.link-btn, .text-btn { display: inline-flex; align-items: center; gap: 6px; }
.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 5px;
  min-height: 41px;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
}
.primary { background: var(--green); color: white; }
.primary:hover { background: #173b2e; }
.link-btn.reset-link { color: var(--red); }
.primary.danger { background: var(--red); }
.primary.danger:hover { background: #80332e; }
.primary .icon, .secondary .icon { width: 15px; height: 15px; }
.secondary { background: transparent; border: 1px solid #c9cec7; }
.secondary:hover { background: var(--pale); }
.handoff { margin-top: 18px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 14px; }
.handoff summary { font-weight: 600; }
.handoff p, .locked-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.handoff p { margin-top: 8px; }
.locked-copy { padding: 14px 18px; background: var(--paper); border-left: 2px solid #8aa38e; font: 18px/1.55 var(--serif); margin: 18px 0; }
.tip-row { display: flex; gap: 8px; align-items: baseline; margin-top: 12px; }
.link-btn, .text-btn { color: var(--green); font-size: 13px; font-weight: 600; padding: 6px 0; overflow-wrap: anywhere; }
.loading { padding: 30px 0; }
.deck { border-top: 1px solid var(--line); }
.chain-card {
  display: grid;
  grid-template-columns: minmax(190px, .85fr) minmax(0, 2fr);
  gap: 28px;
  align-items: center;
  padding: 19px 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.chain-top { flex-direction: column; align-items: flex-start; gap: 4px; }
.chain-top h2, .host-title h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.035em; }
.chain-top small, .host-title small { margin-bottom: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.chip .icon { width: 15px; }
.chain-items { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.item-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.chain-items > .icon { width: 13px; color: var(--muted); }
.chain-items .object-art { width: 36px; height: 36px; font-size: 20px; }
.host-summary { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 17px 0; margin-bottom: 22px; border-block: 1px solid var(--line); }
.stat { border: 0; background: transparent; display: flex; align-items: baseline; gap: 8px; }
.stat b { font: 28px/1.1 var(--serif); }
.stat span { color: var(--muted); font-size: 12px; }
.host-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.host-card { padding: 18px 22px 10px; }
.host-scenes {
  margin-top: 12px;
}
.host-scenes details {
  border-top: 1px solid var(--line);
  padding: 9px 1px;
  font-size: 13px;
}
.host-scenes summary {
  cursor: pointer;
}
.host-scenes p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 6px 0;
  color: var(--muted);
}
.clip-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.clip-controls a { text-decoration: none; }
.host-tools {
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  flex-wrap: wrap;
}
.login-card { max-width: 360px; }
.form-stack {
  display: grid;
  gap: 13px;
}
.form-stack label,
.field-label {
  display: grid;
  gap: 4px;
  font-weight: 600;
  font-size: 13px;
}
.form-stack input,
.form-stack select,
.basic-select,
.invite-url {
  padding: 9px 11px;
  border-radius: 5px;
  background: var(--card);
  border: 1px solid #c9cec7;
  width: 100%;
  min-height: 42px;
}
.basic-select {
  width: auto;
  max-width: 100%;
  font-size: 13px;
}
.login-card .primary {
  justify-self: start;
}
.error {
  color: #992f27;
  font-size: 13px;
}
.form-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.field-group {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.field-group h4 {
  font-size: 19px;
}
.field-group .two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
dialog {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 25px;
  width: min(490px, calc(100vw - 28px));
  max-height: 86dvh;
  box-shadow: 0 16px 80px #10201840;
}
dialog::backdrop {
  background: #13282085;
}
dialog h2 {
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: -0.8px;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.dialog-head button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  background: var(--pale);
  border-radius: 50%;
}
.dialog-head .icon {
  width: 16px;
}
dialog p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
dialog ol {
  padding-left: 20px;
  line-height: 1.65;
}
dialog li {
  margin-bottom: 6px;
}
.dialog-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 17px;
}
.invite-url {
  font-size: 12px;
}
.notice {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--pale);
  font-size: 13px;
  margin-top: 14px;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #253f32;
  color: #fffbef;
  padding: 9px 18px;
  border-radius: 7px;
  z-index: 5;
  box-shadow: 0 3px 20px #14221920;
  font-size: 13px;
  display: none;
}
#toast.show {
  display: block;
}
.empty-state {
  padding: 24px;
}
.empty-state h3 {
  font-size: 25px;
  margin-bottom: 5px;
}
.empty-state .secondary {
  margin-top: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.field-group { border: 0; border-top: 1px solid var(--line); min-width: 0; margin: 4px 0; }
.field-group legend { font: 19px var(--serif); padding-right: 8px; }
.host-tools label { min-width: 0; max-width: 100%; }
.host-tools .basic-select { min-width: 0; }
.error:empty { display: none; }
@media (max-width: 800px) {
  .nav-wrap, .page { width: calc(100% - 48px); }
  .chain-card { grid-template-columns: minmax(160px, .75fr) minmax(0, 2fr); gap: 18px; }
}
@media (max-width: 650px) {
  .nav-wrap, .page { width: calc(100% - 36px); }
  .nav-wrap { min-height: 62px; gap: 16px; }
  .brand img { width: 46px; }
  .nav-wrap nav { gap: 16px; }
  .nav-wrap nav a { font-size: 12px; }
  .help-link { justify-content: center; padding: 0; width: 30px; height: 40px; border: 0; }
  .help-link span { display: none; }
  .help-link .icon { width: 18px; height: 18px; }
  .writing-room { margin-top: 31px; }
  .room-title { font-size: clamp(38px, 8.7vw, 49px); margin-bottom: 22px; }
  .room-bar { gap: 8px; }
  .scene-choices button { padding: 4px 9px; min-height: 36px; font-size: 12px; }
  .team-select select { font-size: 13px; }
  .sheet { padding: 20px; }
  .sheet-heading { gap: 12px; }
  .object-stamp { width: 54px; height: 62px; padding: 6px; }
  .sheet textarea, .passage-copy { font-size: 18px; }
  .sheet textarea { min-height: 160px; }
  .sheet-meta, .sheet-actions { gap: 4px 8px; }
  .section-head { margin: 22px 0 16px; gap: 10px; }
  .chain-card { display: block; padding: 17px 0; }
  .chain-top { flex-direction: row; align-items: center; }
  .chain-items {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 4px;
    margin-top: 14px;
  }
  .chain-items > .icon { margin-top: 5px; }
  .item-chip { flex-direction: column; font-size: 12px; gap: 4px; text-align: center; }
  .chain-items .object-art { width: 27px; height: 27px; }
  .host-list { grid-template-columns: minmax(0, 1fr); }
  .host-summary { gap: 12px 24px; }
  .stat { display: grid; gap: 3px; }
  .stat b { font-size: 24px; }
  .host-card { padding: 16px 16px 8px; }
  .host-tools label { display: grid; gap: 4px; }
  .form-cols { gap: 6px; }
  .form-cols label { font-size: 12px; }
  .form-stack input { min-width: 0; }
  .form-stack input, .form-stack select { font-size: 16px; }
  .page { padding-bottom: 32px; }
}
@media (max-width: 370px) {
  .nav-wrap, .page { width: calc(100% - 28px); }
  .nav-wrap, .nav-wrap nav { gap: 10px; }
  .brand img { width: 41px; }
  .help-link { width: 25px; }
}
