:root {
  color-scheme: light;
  --paper: #f4f0e6;
  --cream: #fffcf4;
  --ink: #293e4c;
  --green: #294e68;
  --muted: #626d62;
  --line: #dcded0;
  --peach: #e6af8e;
  --gold: #e3bd6d;
  --night: #10243c;
  --moon: #fff3d8;
  --sky-muted: #b9cadb;
  --sky-line: #d5e5f02b;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--night);
  font-synthesis: none;
}
.policy-document {
  max-width: 850px;
  margin: 40px auto;
  padding: 32px;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.policy-document h1 {
  margin: 24px 0 12px;
  font-size: clamp(2rem, 6vw, 3.2rem);
}
.policy-document h2 {
  margin: 28px 0 12px;
  font-size: 1.6rem;
}
.policy-document p {
  margin: 12px 0;
}
.policy-document nav,
.policy-document footer {
  margin: 24px 0;
}
.policy-summary {
  font-weight: 650;
}
.policy-date {
  color: var(--muted);
}
.checkout-offer {
  margin-top: 20px;
  line-height: 1.6;
  color: var(--moon);
}
.checkout-offer small {
  display: block;
  color: var(--sky-muted);
  font-size: 12px;
}
.policy-gate {
  max-width: 780px;
  margin: 40px auto;
  padding: 32px;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
}
.policy-gate h1 {
  margin: 12px 0 20px;
  font-size: clamp(2rem, 6vw, 3rem);
}
.policy-gate p {
  margin: 16px 0;
}
.policy-gate form {
  margin-top: 24px;
}
.policy-gate .policy-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: normal;
}
.policy-check input[type="checkbox"] {
  width: 22px;
  min-width: 22px;
  min-height: 22px;
  height: 22px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--green);
}
.policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 12px;
  letter-spacing: normal;
}
.policy-gate .policy-links {
  justify-content: flex-start;
}
.policy-small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
}
.room-footer .policy-links {
  margin-top: 5px;
  font-size: 10px;
}
.landing-footer {
  flex-wrap: wrap;
  gap: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse at 25% 10%, #31557766, transparent 60%),
    url("/night-sky.svg");
  background-size:
    auto,
    840px 720px;
  background-attachment: fixed;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #c17a43;
  outline-offset: 5px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
::selection {
  background: #e9c9a5;
  color: #1e3029;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
img {
  display: block;
  max-width: 100%;
}
.site-header,
.room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sky-line);
  min-height: 100px;
  margin: 0 5.5%;
  gap: 20px;
}
.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 33px;
  letter-spacing: -1.5px;
  white-space: nowrap;
  color: var(--moon);
}
.wordmark-dot {
  color: var(--gold);
}
.book-symbol {
  width: 43px;
  height: 43px;
  margin-right: 10px;
  flex-shrink: 0;
}
.book-symbol.large {
  width: 90px;
  height: 90px;
  margin: 0;
}
.header-note,
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2px;
  line-height: 1.7;
}
.header-note {
  color: var(--sky-muted);
}
.landing {
  max-width: 1500px;
  margin: auto;
  padding: 70px 5.5% 65px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 55px;
  min-height: calc(100svh - 170px);
}
.landing-copy > .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  color: var(--gold);
}
.little-line {
  width: 28px;
  height: 1px;
  background: #b38a5c;
}
.landing h1 {
  font-size: clamp(48px, 5.6vw, 82px);
  line-height: 1.05;
  letter-spacing: -3px;
  color: var(--moon);
}
.landing h1 i {
  color: #efcc8c;
  font-weight: 400;
}
.intro {
  font-size: 15px;
  line-height: 1.85;
  max-width: 440px;
  margin-top: 25px;
  color: var(--sky-muted);
}
.entry-panel {
  max-width: 470px;
  margin-top: 28px;
  padding: 22px 26px 25px;
  background: linear-gradient(135deg, #fffcf3, #f4ecd9);
  border: 1px solid #e9d6ad;
  border-radius: 6px 18px 8px 14px;
  box-shadow:
    0 4px 0 #d5b87b44,
    0 15px 40px #030d1e33;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.tabs button {
  border: 0;
  background: none;
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
  position: relative;
}
.tabs button[aria-selected="true"] {
  color: var(--green);
  font-weight: 700;
}
.tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: var(--green);
  left: 0;
  right: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 14px;
  margin-bottom: 16px;
}
label {
  display: block;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.4px;
}
input,
select {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid #ced2c5;
  border-radius: 4px;
  padding: 10px 13px;
  color: var(--ink);
  background: #faf8f0;
  font-size: 16px;
  letter-spacing: normal;
  margin-top: 8px;
}
input::placeholder,
textarea::placeholder {
  color: #959b8d;
}
.code-input {
  letter-spacing: 4px;
  font-weight: 700;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--cream);
  border-radius: 4px;
  padding: 13px 23px;
  font-size: 13px;
  font-weight: 550;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:not(:disabled):hover {
  background: #345f50;
  transform: translateY(-1px);
}
.button.secondary {
  background: transparent;
  border-color: #b9c4b4;
  color: var(--green);
}
.button.secondary:not(:disabled):hover {
  background: #e5e9dc;
}
.entry-panel .button {
  width: 100%;
}
.form-hint {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  margin-top: 12px;
}
.landing-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  color: var(--sky-muted);
  margin-top: 28px;
}
.landing-meta span + span::before {
  content: "·";
  margin-right: 16px;
  color: #b7b9a9;
}
.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 5.5%;
  border-top: 1px solid var(--sky-line);
  font-size: 10px;
  color: var(--sky-muted);
  gap: 20px;
}
.landing-footer > span:first-child {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 14px;
}
.landing-footer > span:last-child {
  font-size: 8px;
  letter-spacing: 1.2px;
}
.cover-art {
  position: relative;
  height: 590px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.cover-art::before {
  content: "";
  position: absolute;
  width: 450px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #e3bd6d25,
    #42769b16 55%,
    transparent 72%
  );
  z-index: -2;
}
.cover-art::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 45px;
  border-radius: 50%;
  background: #21392c26;
  filter: blur(15px);
  bottom: 50px;
  transform: rotate(-8deg);
  z-index: -1;
}
.mascot-illustration {
  width: min(100%, 450px);
  aspect-ratio: 1;
  border-radius: 47% 47% 12% 12%;
  overflow: hidden;
  border: 1px solid #e3bd6d66;
  outline: 1px solid #e3bd6d22;
  outline-offset: 9px;
  box-shadow: 0 20px 70px #030d1e66;
  transform: rotate(2deg);
}
.mascot-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fox-welcome {
  position: absolute;
  bottom: -8px;
  width: min(86%, 360px);
  text-align: center;
  padding: 25px 20px 22px;
  background: linear-gradient(140deg, #fffcf3, #f2e6cc);
  border: 1px solid #e3c995;
  border-radius: 8px 18px 8px 18px;
  box-shadow: 0 8px 30px #020a1966;
  transform: rotate(-3deg);
}
.fox-welcome .eyebrow {
  font-size: 8px;
  color: #756745;
  letter-spacing: 1.8px;
}
.fox-welcome p {
  font:
    italic 26px/1.35 Georgia,
    serif;
  margin-top: 12px;
  color: #354c54;
}
.welcome-flourish {
  display: block;
  color: #ad8244;
  margin-top: 10px;
}
.how-to-play {
  max-width: 470px;
  color: var(--sky-muted);
  font-size: 12px;
  margin-top: 20px;
}
.how-to-play summary {
  color: var(--gold);
  padding: 12px 0;
  text-underline-offset: 4px;
}
.how-to-play ol {
  padding-left: 20px;
  margin-top: 8px;
  line-height: 1.8;
}
.how-to-play li {
  padding: 0 0 10px 5px;
}
.how-to-play b {
  color: var(--moon);
}
.star {
  position: absolute;
  color: #a98651;
  font-size: 34px;
}
.star-one {
  top: 35px;
  right: 55px;
  transform: rotate(15deg);
}
.star-two {
  bottom: 90px;
  left: 10px;
  font-size: 45px;
}
.star-three {
  top: 90px;
  left: 20px;
  font-size: 18px;
}
.notice {
  padding: 15px 20px;
  background: #f1dfcc;
  color: #753c2b;
  border: 1px solid #d7b394;
  border-radius: 4px;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.6;
}
.loading-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 25px;
  padding: 25px;
  color: var(--moon);
}
.loading-screen h1 {
  font-size: 40px;
}
.loading-screen p {
  color: var(--sky-muted);
  max-width: 420px;
  line-height: 1.7;
}
.room {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.room-header {
  min-height: 85px;
  margin: 0 4%;
}
.room-header-middle {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--sky-muted);
}
.room-header-middle b {
  color: var(--gold);
}
.room-tools {
  display: flex;
  align-items: center;
  gap: 25px;
}
.text-button {
  border: 0;
  padding: 10px 0;
  font-size: 11px;
  background: none;
  color: var(--sky-muted);
}
.room-code {
  font-size: 9px;
  color: var(--sky-muted);
  letter-spacing: 1px;
  white-space: nowrap;
}
.room-code b {
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 3px;
  margin-left: 8px;
}
.connection-banner {
  text-align: center;
  padding: 13px;
  font-size: 12px;
  line-height: 1.5;
  background: #f0d9b6;
}
.demo-banner {
  text-align: center;
  font-size: 8px;
  letter-spacing: 1.3px;
  padding: 8px 20px;
  color: #766443;
  background: #ede7d8;
}
.demo-banner span {
  letter-spacing: 0.2px;
}
.room-main {
  width: min(1200px, 92%);
  margin: 0 auto;
  flex: 1;
  padding-bottom: 40px;
}
.chapter-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--sky-line);
  min-height: 65px;
}
.chapter-bar > span {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--sky-muted);
}
.chapter-bar > span b {
  font-size: 17px;
  color: var(--moon);
}
.steps {
  display: flex;
  gap: 13px;
  font-size: 10px;
  color: #99aec5;
}
.steps i {
  margin-left: 13px;
  font-style: normal;
}
.steps .active {
  color: var(--gold);
  font-weight: 700;
}
.steps .complete {
  color: #cfdae1;
}
.timer {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  min-width: 80px;
  text-align: right;
}
.timer-icon {
  margin-right: 8px;
  font-size: 24px;
  vertical-align: -2px;
}
.timer.urgent {
  color: #ffbb91;
}
.phase-intro {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  text-align: left;
  margin: 36px auto 32px;
  max-width: 1000px;
  color: var(--moon);
  animation: enter 0.5s ease-out both;
}
.phase-intro .eyebrow {
  font-size: 9px;
  letter-spacing: 2.4px;
  color: var(--gold);
  margin-bottom: 12px;
}
.phase-intro h1 {
  font-size: clamp(30px, 3.5vw, 50px);
  letter-spacing: -1.5px;
  line-height: 1.12;
  text-wrap: balance;
}
.narrator-portrait {
  align-self: start;
  text-align: center;
}
.narrator-portrait img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #e3bd6d66;
  border-radius: 50%;
}
.narrator-portrait > span {
  display: block;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 1.3px;
  margin-top: 13px;
}
.narrator-line {
  color: #d2dfeb;
  font:
    18px/1.65 Georgia,
    serif;
  margin-top: 15px;
  max-width: 720px;
}
.action-cue {
  margin-top: 18px;
  padding: 13px 17px;
  border-left: 2px solid #d9b877;
  background: #9ebcdb12;
  border-radius: 0 7px 7px 0;
}
.action-cue > span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.action-cue > p {
  margin-top: 5px;
  color: #d2dfeb;
  font-size: 12px;
  line-height: 1.7;
}
.lobby-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 35px;
  margin-top: 42px;
  align-items: stretch;
}
.join-card {
  background: linear-gradient(135deg, #fffcf3, #f0e7d2);
  border: 1px solid #dfcca2;
  padding: 42px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-radius: 7px;
}
.join-card .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.join-card h2 {
  font-size: 35px;
  line-height: 1.15;
  margin: 18px 0;
  letter-spacing: -0.8px;
}
.join-card h2 i {
  color: #a87943;
}
.join-card p {
  font-size: 11px;
  line-height: 1.8;
  color: #77806d;
  overflow-wrap: anywhere;
}
.join-card p b {
  color: var(--green);
}
.big-room-code {
  font-size: 35px;
  letter-spacing: 9px;
  margin-top: 15px;
  font-weight: 650;
}
.qr {
  width: 165px;
  border: 10px solid var(--cream);
  border-radius: 5px;
}
.writers-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f9f6ee;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.panel-heading .eyebrow {
  font-size: 9px;
}
.writers {
  display: grid;
  gap: 9px;
  grid-template-columns: 1fr 1fr;
  margin: 25px 0;
  min-height: 130px;
  align-content: start;
}
.writer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: 12px;
  min-width: 0;
}
.writer > span:nth-child(2) {
  overflow-wrap: anywhere;
}
.avatar {
  width: 30px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 40% 40% 35% 35%;
  background: #dfbc9d;
  color: #624939;
  font-size: 13px;
  flex-shrink: 0;
  font-family: Georgia, serif;
}
.writer-1 .avatar {
  background: #c6d6c5;
  color: #365748;
}
.writer-2 .avatar {
  background: #ddd0a3;
  color: #746135;
}
.writer-3 .avatar {
  background: #d5cad8;
  color: #69546b;
}
.online-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #b2b4a9;
  margin-left: auto;
}
.online-dot.online {
  background: #60926f;
}
.writers-panel > .button {
  width: 100%;
  font-size: 12px;
  padding-inline: 10px;
}
.empty-note {
  font-family: Georgia, serif;
  font-style: italic;
  color: #919780;
  grid-column: 1/-1;
  font-size: 17px;
  line-height: 1.7;
  padding: 15px;
}
.scene-card {
  position: relative;
  max-width: 850px;
  margin: 0 auto 30px;
  text-align: center;
  background: #fcf9f0;
  padding: 38px 50px;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 4px 0 #e6e5d8;
  animation: enter 0.6s ease-out both;
}
.quote-mark {
  position: absolute;
  top: -4px;
  left: 20px;
  color: #c2cbb5;
  font-family: Georgia, serif;
  font-size: 75px;
}
.scene-card > p {
  font:
    27px/1.5 Georgia,
    serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.credit {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-top: 25px;
  color: var(--muted);
}
.credit b {
  color: var(--green);
  margin-left: 5px;
  font-size: 10px;
}
.compose {
  max-width: 740px;
  margin: 28px auto;
  background: #fcf9f0;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 26px;
}
.compose label {
  margin-bottom: 15px;
  color: #7a866d;
}
.writing-hint {
  color: #626f60;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 18px;
}
textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 190px;
  background: transparent;
  border: 0;
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.6;
  color: var(--ink);
  padding: 8px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.compose-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 15px;
}
.compose-bottom > span {
  color: var(--muted);
  font-size: 10px;
}
.sealed {
  text-align: center;
  padding: 45px 25px;
  background: #e9eddf;
  border-radius: 5px;
  max-width: 740px;
  margin: 0 auto;
}
.seal-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid #a7bba0;
  border-radius: 50%;
  margin: 0 auto 20px;
  font-size: 24px;
}
.sealed h2 {
  font-size: 31px;
}
.sealed p {
  color: #748067;
  font-size: 13px;
  margin-top: 15px;
  line-height: 1.8;
}
.sealed blockquote {
  margin: 30px 0 0;
  font:
    italic 18px/1.6 Georgia,
    serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sealed > .book-symbol {
  margin-top: 25px;
  color: #9caf8f;
}
.host-writing {
  text-align: center;
  padding: 15px 10px 30px;
  color: var(--moon);
}
.host-writing h2 {
  font-size: 27px;
  margin-top: 15px;
}
.host-writing p {
  color: var(--sky-muted);
  font-size: 12px;
  margin-top: 13px;
  line-height: 1.7;
}
.writing-illustration {
  position: relative;
  height: 135px;
  width: 160px;
  margin: auto;
}
.paper-lines {
  height: 115px;
  width: 95px;
  border: 1px solid #c7cfb9;
  background: #fdfaf1;
  transform: rotate(-8deg);
  padding: 25px 15px;
  box-shadow: 3px 4px 0 #dddcca;
  position: absolute;
  left: 23px;
  top: 10px;
}
.paper-lines span {
  display: block;
  border-top: 1px solid #ccd3bf;
  margin-bottom: 15px;
}
.paper-lines span:last-child {
  width: 60%;
}
.floating-pen {
  font:
    90px Georgia,
    serif;
  position: absolute;
  right: 4px;
  top: -15px;
  z-index: 1;
  color: #a1774d;
  transform: rotate(3deg);
  animation: pen 3s ease-in-out infinite;
}
.ballot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 25px auto;
  max-width: 1000px;
}
.candidate {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 0 #e5e5d7;
  animation: enter 0.4s ease-out both;
}
.candidate-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8a967b;
  font-size: 9px;
  letter-spacing: 1.7px;
  margin-bottom: 15px;
}
.candidate-label > span:last-child {
  font-size: 20px;
}
.candidate > p {
  font:
    23px/1.5 Georgia,
    serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  flex: 1;
}
.candidate > .button {
  width: 100%;
  margin-top: 24px;
}
.candidate > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}
.image-ballot {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  max-width: none;
  gap: 18px;
}
.image-ballot .candidate {
  padding: 15px;
}
.image-ballot .candidate > p {
  font-size: 18px;
  margin-top: 16px;
}
.image-ballot .button {
  font-size: 11px;
  padding: 12px 8px;
}
.voted-note {
  text-align: center;
  padding: 16px;
  background: #dfe7d7;
  color: #4a6947;
  border-radius: 4px;
  font-size: 12px;
  max-width: 1000px;
  margin: 0 auto;
}
.small-note {
  color: var(--sky-muted);
  text-align: center;
  font-size: 10px;
  line-height: 1.8;
  margin: 20px auto;
}
.failed-image {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px;
  background: #eae8da;
  font-size: 11px;
}
.round-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  margin: 30px 0;
}
.round-progress > span {
  font-size: 10px;
  color: var(--sky-muted);
}
.progress-pips {
  display: flex;
  gap: 7px;
}
.progress-pips > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #99b4cf66;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 12px;
  color: var(--sky-muted);
}
.progress-pips > .done {
  background: var(--gold);
  color: var(--night);
  border-color: var(--gold);
}
.host-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0 0;
  border-top: 1px solid var(--sky-line);
  gap: 25px;
  margin-top: 30px;
}
.host-controls > span {
  font-size: 10px;
  color: var(--sky-muted);
  line-height: 1.7;
}
.host-controls .button {
  white-space: nowrap;
  font-size: 11px;
}
.host-controls .button.secondary,
.book-navigation .button.secondary {
  color: var(--moon);
  border-color: #b9cadb77;
  background: #92b1d00c;
}
.host-controls .button.secondary:not(:disabled):hover,
.book-navigation .button.secondary:not(:disabled):hover {
  background: #92b1d02b;
}
.room-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--sky-line);
  margin: 0 4%;
  padding: 23px 0;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--sky-muted);
}
.room-footer > span:nth-child(2) {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0;
}
.story-so-far {
  border: 1px solid var(--line);
  border-radius: 4px;
  max-width: 850px;
  margin: 0 auto 25px;
  background: #ecefdf;
  font-size: 12px;
}
.draft-auto-status {
  color: var(--muted);
  font: 12px/1.5 sans-serif;
  margin: 8px 0 12px;
}
.timer small {
  font: 12px/1.2 sans-serif;
  margin-left: 8px;
}
summary {
  cursor: pointer;
  padding: 14px 18px;
}
.story-so-far > div {
  padding: 10px 25px 25px;
}
.story-so-far-page {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.story-so-far-page > img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.story-missing-art {
  font: 12px/1.5 sans-serif;
}
@media (max-width: 600px) {
  .story-so-far-page {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-so-far-page > img {
    max-width: 240px;
  }
}
.story-so-far p {
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.7;
  margin-top: 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.generating {
  text-align: center;
  padding: 15px 25px 50px;
}
.generating p {
  color: var(--moon);
  font-size: 13px;
  margin-top: 30px;
  line-height: 1.7;
}
.generating small {
  display: block;
  font-size: 10px;
  color: var(--sky-muted);
  max-width: 500px;
  margin: 15px auto 0;
  line-height: 1.8;
}
.ink-loader {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 25px;
}
.ink-loader span {
  display: block;
  width: 20px;
  height: 20px;
  background: #4b7557;
  border-radius: 40% 50% 45% 55%;
  animation: ink 1.8s ease-in-out infinite;
}
.ink-loader span:nth-child(2) {
  background: #cea177;
  animation-delay: 0.25s;
}
.ink-loader span:nth-child(3) {
  background: #a9b79a;
  animation-delay: 0.5s;
}
.book-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 1100px);
  margin: 30px auto;
  background: #fffcf3;
  border-radius: 3px 8px 8px 3px;
  border: 1px solid #d7d5c7;
  box-shadow:
    0 4px 0 #e1dfd0,
    0 7px 0 #c5cbb9,
    0 14px 30px #293e2810;
  overflow: hidden;
  animation: page-turn 0.65s ease-out both;
}
.page-picture {
  background: #dee4d2;
  min-height: 350px;
}
.page-picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}
.page-words {
  padding: 42px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-left: 1px solid #dedbcd;
  background: linear-gradient(90deg, #e9e4d470, transparent 25px);
}
.page-words > .eyebrow {
  font-size: 7px;
  letter-spacing: 1.8px;
  color: #9aa084;
}
.page-story {
  font:
    29px/1.5 Georgia,
    serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 30px 0;
  flex: 1;
}
.page-credits {
  font-size: 10px;
  color: #8a8c78;
  line-height: 1.8;
  border-top: 1px solid #e5e1d3;
  padding-top: 20px;
}
.page-credits > span {
  display: block;
}
.page-credits b {
  color: #586d50;
  font-weight: 600;
}
.page-credits summary {
  padding: 12px 0 0;
  font-size: 9px;
}
.page-credits details p {
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.page-number {
  text-align: center;
  font-family: Georgia, serif;
  font-size: 11px;
  color: #9ba088;
  margin-top: 25px;
}
.missing-art {
  height: 100%;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px;
  text-align: center;
  gap: 20px;
  color: #758c69;
}
.missing-art p {
  font:
    italic 24px/1.5 Georgia,
    serif;
}
.missing-art small {
  font-size: 10px;
}
.book-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  margin: 25px 0;
}
.book-navigation > span {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--sky-muted);
}
.book-navigation .button {
  padding: 10px 18px;
  min-height: 40px;
  font-size: 11px;
}
.ending {
  text-align: center;
  margin: 55px auto 15px;
  max-width: 650px;
  color: var(--moon);
}
.ending-flourish {
  font-size: 30px;
  color: #aa8957;
}
.ending h2 {
  font-size: 30px;
  margin: 20px 0;
}
.ending > p:not(.form-hint) {
  font-size: 12px;
  color: var(--sky-muted);
  line-height: 1.8;
  margin-bottom: 25px;
}
.ending > .button {
  min-width: 240px;
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
}
.ending .form-hint {
  color: var(--sky-muted);
}
.ending > .button:not(:disabled):hover {
  background: #efd49b;
}
.text-link {
  display: inline-block;
  font-size: 12px;
  text-underline-offset: 5px;
  margin-top: 25px;
  color: var(--gold);
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pen {
  0%,
  100% {
    transform: translate(0, 0) rotate(3deg);
  }
  50% {
    transform: translate(5px, 4px) rotate(-4deg);
  }
}
@keyframes ink {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-12px) rotate(25deg);
  }
}
@keyframes page-turn {
  from {
    opacity: 0;
    transform: perspective(1500px) rotateY(-8deg) translateY(5px);
  }
  to {
    opacity: 1;
    transform: perspective(1500px) rotateY(0) translateY(0);
  }
}
@media (min-width: 1600px) {
  .host-room .room-main {
    width: 85%;
    max-width: 1500px;
  }
  .host-room .phase-intro h1 {
    font-size: 60px;
  }
  .host-room .candidate > p {
    font-size: 30px;
  }
  .host-room .scene-card > p {
    font-size: 36px;
  }
}
@media (max-width: 1050px) {
  .landing {
    gap: 20px;
    padding-top: 45px;
    padding-bottom: 45px;
  }
  .cover-art {
    height: 520px;
  }
  .star-one {
    right: 10px;
  }
  .join-card {
    padding: 25px;
  }
  .join-card h2 {
    font-size: 30px;
  }
  .qr {
    width: 130px;
  }
  .lobby-layout {
    gap: 20px;
  }
  .writers {
    grid-template-columns: 1fr;
  }
  .page-story {
    font-size: 24px;
  }
  .page-words {
    padding: 30px;
  }
}
@media (max-width: 760px) {
  .site-header {
    min-height: 80px;
  }
  .header-note {
    font-size: 7px;
    letter-spacing: 1.2px;
  }
  .wordmark {
    font-size: 29px;
  }
  .book-symbol {
    width: 35px;
    height: 35px;
  }
  .landing {
    grid-template-columns: 1fr;
    padding-top: 40px;
    min-height: auto;
  }
  .landing-copy {
    max-width: 540px;
    width: 100%;
    margin: auto;
  }
  .landing h1 {
    font-size: clamp(43px, 8.8vw, 60px);
  }
  .landing-copy > .eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px;
    margin-bottom: 23px;
  }
  .intro {
    font-size: 14px;
  }
  .entry-panel {
    max-width: none;
  }
  .cover-art {
    height: 480px;
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
  }
  .cover-art::after {
    bottom: 35px;
  }
  .cover-art::before {
    width: 380px;
  }
  .star-one {
    right: 50px;
    top: 10px;
  }
  .star-two {
    left: 40px;
    bottom: 60px;
  }
  .star-three {
    top: 55px;
    left: 60px;
  }
  .landing-footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .room-header {
    min-height: 75px;
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 8px;
  }
  .room-header-middle {
    display: none;
  }
  .room-tools {
    gap: 15px;
  }
  .text-button {
    font-size: 10px;
  }
  .room-code {
    font-size: 8px;
  }
  .room-code b {
    font-size: 16px;
    letter-spacing: 2px;
  }
  .demo-banner {
    font-size: 7px;
    line-height: 1.7;
  }
  .demo-banner span {
    display: block;
    font-size: 8px;
  }
  .room-main {
    width: 90%;
  }
  .chapter-bar {
    min-height: 60px;
    gap: 10px;
  }
  .steps {
    display: none;
  }
  .phase-intro {
    margin: 30px auto 25px;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px 16px;
  }
  .phase-intro h1 {
    font-size: 30px;
    letter-spacing: -1px;
    grid-column: 2;
  }
  .narrator-speech {
    display: contents;
  }
  .narrator-portrait {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .narrator-portrait img {
    width: 64px;
    height: 64px;
  }
  .narrator-portrait > span {
    display: none;
  }
  .narrator-line {
    grid-column: 1 / -1;
    font-size: 16px;
    margin-top: 3px;
  }
  .action-cue {
    grid-column: 1 / -1;
    margin-top: 2px;
  }
  .phase-intro .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
    grid-column: 2;
    margin-bottom: 0;
  }
  .lobby-layout {
    grid-template-columns: 1fr;
    margin-top: 25px;
  }
  .join-card {
    padding: 25px;
  }
  .join-card h2 {
    font-size: 32px;
  }
  .qr {
    width: 145px;
  }
  .writers {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }
  .writers-panel {
    padding: 22px;
  }
  .scene-card {
    padding: 30px 25px;
  }
  .scene-card > p {
    font-size: 23px;
  }
  .quote-mark {
    left: 8px;
    font-size: 50px;
  }
  .credit {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .credit b {
    font-size: 9px;
  }
  .compose {
    padding: 20px;
    margin: 20px 0;
  }
  textarea {
    font-size: 21px;
    padding: 0;
  }
  .compose-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .compose-bottom > span {
    text-align: right;
  }
  .compose-bottom .button {
    width: 100%;
  }
  .sealed {
    padding: 35px 20px;
  }
  .sealed h2 {
    font-size: 27px;
  }
  .sealed p {
    font-size: 12px;
  }
  .sealed blockquote {
    font-size: 17px;
  }
  .ballot,
  .image-ballot {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .candidate {
    padding: 20px;
  }
  .candidate > p {
    font-size: 23px;
  }
  .image-ballot .candidate {
    padding: 15px;
  }
  .candidate .button {
    font-size: 12px;
  }
  .image-ballot .candidate > img {
    max-height: 65svh;
    object-fit: contain;
    background: #e9eadc;
  }
  .host-writing h2 {
    font-size: 25px;
  }
  .host-controls {
    flex-direction: column;
    text-align: center;
    padding-top: 20px;
    gap: 15px;
  }
  .host-controls .button {
    width: 100%;
  }
  .room-footer {
    padding: 20px 0;
    justify-content: center;
  }
  .room-footer > span:first-child,
  .room-footer > span:last-child {
    display: none;
  }
  .generating {
    padding: 10px 15px 40px;
  }
  .book-page {
    grid-template-columns: 1fr;
  }
  .page-picture {
    min-height: 0;
  }
  .page-picture > img {
    max-height: 70svh;
    object-fit: contain;
  }
  .page-words {
    padding: 30px;
    border-left: none;
    border-top: 1px solid #dfdccc;
    background: linear-gradient(#e9e4d450, transparent 20px);
  }
  .page-story {
    margin: 25px 0;
    font-size: 27px;
  }
  .book-navigation {
    gap: 15px;
  }
  .book-navigation .button {
    font-size: 10px;
    padding: 10px 13px;
  }
  .book-navigation > span {
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  .ending h2 {
    font-size: 28px;
  }
  .ending {
    margin-top: 40px;
  }
}
@media (max-width: 380px) {
  .landing h1 {
    font-size: 43px;
  }
  .landing-meta {
    gap: 10px;
    font-size: 9px;
  }
  .landing-meta span + span::before {
    margin-right: 10px;
  }
  .join-card {
    padding: 20px;
    gap: 10px;
  }
  .qr {
    width: 110px;
  }
  .join-card h2 {
    font-size: 27px;
  }
  .room-tools {
    gap: 10px;
  }
  .room-header .wordmark {
    font-size: 24px;
  }
  .room-code b {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
