.join-screen,
.phone {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--paper);
  position: relative;
}
.join-screen {
  padding: 29px 26px 35px;
}
.join-screen .wordmark {
  font-size: 13px;
}
.join-intro {
  margin: 49px 0 32px;
}
.join-intro .eyebrow {
  color: #8b7555;
  font-size: 9px;
}
.join-intro h1 {
  font-size: 53px;
  margin: 11px 0;
}
.join-intro p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 290px;
}
#join-form > label,
#join-form legend {
  font-size: 9px;
  letter-spacing: 0.15em;
  font-weight: 700;
  display: block;
}
#join-form input {
  width: 100%;
  height: 55px;
  padding: 12px 15px;
  background: #f3efdf;
  border: 1px solid #cfcbb6;
  border-radius: 3px;
  margin: 10px 0 26px;
  font-size: 18px;
  color: var(--ink);
}
#join-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
#join-form legend {
  padding: 0;
  margin-bottom: 12px;
}
.avatar-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.avatar-option {
  background: #f0ecda;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 7px 2px 0;
  min-width: 0;
  height: 89px;
  overflow: hidden;
}
.avatar-option .avatar {
  height: 82px;
  width: 69px;
}
.avatar-option.selected {
  background: #dedfc2;
  border: 2px solid #476954;
}
.avatar-option:hover {
  background: #e3dfc9;
}
#join-form > .primary {
  margin-top: 29px;
  width: 100%;
}
.join-foot {
  text-align: center;
  font-size: 11px;
  color: #8b8d7a;
  margin-top: 29px;
  font-family: var(--serif);
  font-style: italic;
}
.phone {
  padding-bottom: 170px;
}
.phone-header {
  height: 69px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.phone-header .wordmark {
  font-size: 11px;
  gap: 6px;
}
.phone-header .wordmark .icon {
  width: 18px;
  height: 20px;
}
.phone-day {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.your-state {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 22px 9px;
}
.your-state > .avatar {
  height: 73px;
  width: 63px;
}
.your-state > div {
  flex: 1;
}
.your-name {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 7px;
}
.your-name strong {
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.your-name small {
  font-size: 9px;
  color: #97a08c;
}
.meter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
}
.meter > span {
  width: 39px;
  color: #718171;
}
.meter > b {
  font-size: 9px;
  font-weight: 400;
  color: #7d8877;
}
.pips {
  display: flex;
  gap: 4px;
}
.pips i {
  width: 12px;
  height: 4px;
  background: #e0e1cc;
  border-radius: 1px;
}
.pips i.filled {
  background: #64836a;
}
.needs .pips i.filled {
  background: #bf8a54;
}
.condition-tags {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}
.condition-tags span {
  font-size: 9px;
  color: var(--rust);
  background: #f0e6d2;
  padding: 3px 6px;
  border-radius: 2px;
}
.condition-tags .okay {
  color: #74826d;
  background: none;
  padding: 0;
}
.needs-row {
  padding: 11px 22px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.needs-row .meter {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.needs-row .meter b {
  display: none;
}
.needs-row .pips i {
  width: 10px;
}
.phone-content {
  padding: 23px 22px 35px;
}
.phone-event {
  padding: 20px 20px 18px;
  background: #ece6ce;
  border: 1px solid #d8d2b8;
  border-radius: 2px;
  box-shadow: 3px 4px 0 #dddbc521;
}
.phone-event > .eyebrow {
  font-size: 8px;
  color: #8b7452;
}
.phone-event h2 {
  font-size: 31px;
  margin: 10px 0 12px;
}
.phone-event p {
  font-size: 13px;
  line-height: 1.7;
  color: #53675b;
}
.phone-event > small {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.6;
  color: #7a826b;
}
.decision-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 19px 0 13px;
  font-size: 11px;
  color: #7a8069;
}
.decision-hint .icon {
  height: 16px;
  width: 16px;
}
.task-card {
  margin: 9px 0;
  background: #fffdf5;
  border: 1px solid #dddcc8;
  border-radius: 4px;
  overflow: hidden;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.task-card.chosen {
  background: #e6ead5;
  border: 2px solid #5b7d62;
}
.task-choice {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 16px 14px;
  gap: 12px;
  color: var(--ink);
}
.task-choice > div {
  flex: 1;
}
.task-choice strong {
  font-size: 13px;
}
.task-choice p {
  font-size: 11px;
  line-height: 1.6;
  color: #78826e;
  margin: 5px 0;
}
.task-choice small {
  display: block;
  font-size: 9px;
  color: #9c7855;
  line-height: 1.5;
}
.task-choice .odds {
  font-family: var(--serif);
  font-size: 28px;
  white-space: nowrap;
  color: #5f7c5e;
}
.task-choice .odds small {
  font-size: 12px;
  display: inline;
  color: inherit;
}
.task-card.unavailable {
  background: #f4f0e2;
}
.task-card.unavailable .task-choice {
  opacity: 0.55;
}
.target-label {
  border-top: 1px solid #dddcc8;
  margin: 0 14px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
.target-label select {
  min-height: 38px;
  flex: 1;
  border: 1px solid #d7d7bf;
  background: #fffdf4;
  padding: 7px;
  color: var(--ink);
  border-radius: 2px;
}
.section-title {
  margin: 29px 0 18px;
}
.section-title .eyebrow {
  font-size: 8px;
  color: #899079;
}
.section-title h2 {
  font-size: 30px;
  margin: 9px 0;
}
.section-title h2 small {
  font-family: var(--sans);
  font-size: 13px;
  color: #899079;
  letter-spacing: 0;
}
.section-title p {
  font-size: 12px;
  line-height: 1.65;
  color: #7c856f;
}
.phone-content > .section-title:first-child {
  margin-top: 0;
}
.task-filter {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding: 3px 0 9px;
  scrollbar-width: thin;
}
.task-filter button {
  background: none;
  border: 1px solid #d6d6bd;
  font-size: 10px;
  border-radius: 3px;
  padding: 9px 12px;
  white-space: nowrap;
}
.task-filter button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.phone-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  width: 100%;
  max-width: 560px;
  display: flex;
  background: #f7f2e0f7;
  border-top: 1px solid var(--line);
  padding: 10px 10px max(10px, env(safe-area-inset-bottom));
  z-index: 20;
  box-shadow: 0 -5px 30px #233c3210;
}
.phone-nav button {
  border: 0;
  background: none;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-direction: column;
  font-size: 9px;
  color: #8a927d;
  min-height: 44px;
}
.phone-nav button.active {
  color: var(--ink);
}
.phone-nav .icon {
  height: 20px;
  width: 20px;
}
.commit-bar {
  position: fixed;
  bottom: calc(65px + env(safe-area-inset-bottom));
  left: 50%;
  translate: -50% 0;
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  background: #eee9d4f7;
  z-index: 21;
  border-top: 1px solid #d4d4bb;
  box-shadow: 0 -8px 25px #203b3510;
}
.commit-bar > div {
  min-width: 0;
}
.commit-bar small {
  font-size: 8px;
  letter-spacing: 0.12em;
  display: block;
  color: #8c8e75;
  margin-bottom: 5px;
}
.commit-bar strong {
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.commit-bar button {
  min-height: 44px;
  padding: 12px 15px;
  gap: 9px;
  font-size: 12px;
  flex-shrink: 0;
}
.commit-bar .icon {
  height: 16px;
  width: 16px;
}
.waiting-phone {
  padding: 0 25px 45px;
  text-align: center;
}
.waiting-phone .phone-header {
  margin: 0 -25px;
  text-align: left;
}
.waiting-portrait {
  width: 205px;
  height: 215px;
  border-radius: 49% 47% 44% 46%;
  background: #e9dcb7;
  margin: 65px auto 28px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  box-shadow: 4px 6px 0 #d8cfad50;
}
.waiting-portrait .avatar {
  width: 150px;
  height: 182px;
}
.waiting-phone > .eyebrow {
  font-size: 9px;
  color: #8e7b59;
}
.waiting-phone > h1 {
  font-size: 53px;
  margin: 13px 0 14px;
  overflow-wrap: anywhere;
}
.waiting-phone > p {
  font-size: 14px;
  line-height: 1.8;
  color: #7b866f;
  max-width: 310px;
  margin: auto;
}
.phone-crew {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 39px;
}
.phone-crew > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 72px;
}
.phone-crew .avatar {
  width: 44px;
  height: 57px;
}
.phone-crew small {
  font-size: 9px;
  color: #718069;
  margin-top: 5px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.waiting-note {
  margin-top: 39px;
  color: #959a82;
  font-size: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.waiting-note .icon {
  height: 15px;
  width: 15px;
}
.inventory-item {
  display: flex;
  gap: 13px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.item-symbol {
  height: 39px;
  width: 39px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #ece8d2;
  border-radius: 4px;
  flex-shrink: 0;
}
.inventory-item > div:last-child {
  flex: 1;
  min-width: 0;
}
.inventory-item strong {
  font-size: 13px;
}
.inventory-item em {
  font-style: normal;
  color: #a19677;
  font-size: 12px;
}
.inventory-item p {
  font-size: 11px;
  color: #7e866f;
  line-height: 1.6;
  margin: 6px 0 11px;
}
.item-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.item-actions button {
  background: #e4e8d0;
  border: 1px solid #cbd0b3;
  border-radius: 3px;
  padding: 9px 11px;
  font-size: 10px;
  min-height: 36px;
}
.item-actions select {
  min-width: 0;
  max-width: 150px;
  font-size: 11px;
  background: #fffdf5;
  border: 1px solid #d7d7bf;
  border-radius: 2px;
  padding: 8px;
  min-height: 36px;
}
.empty-state {
  color: #929981;
  font-size: 12px;
  padding: 10px 0 20px;
}
.diary-page {
  padding: 14px 3px 30px;
  position: relative;
}
.diary-page > .eyebrow {
  font-size: 8px;
  color: #8b7c5b;
}
.diary-page h2 {
  font-size: 40px;
  margin: 18px 0 23px;
}
.diary-hand {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.85;
  color: #596650;
  background: repeating-linear-gradient(
    transparent,
    transparent 39px,
    #dcdac455 40px,
    #dcdac455 41px
  );
}
.diary-signature {
  font-family: var(--serif);
  font-style: italic;
  text-align: right;
  font-size: 20px;
  margin: 24px 0 35px;
}
.diary-skills {
  background: #e9e6d0;
  padding: 23px 20px;
  transform: rotate(-0.7deg);
  box-shadow: 3px 4px 0 #d1d2b530;
}
.diary-skills > .eyebrow {
  font-size: 8px;
}
.diary-skills h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 13px 0 9px;
}
.diary-skills p {
  font-size: 12px;
  color: #5a755d;
  margin-bottom: 13px;
}
.diary-skills small {
  font-size: 11px;
  line-height: 1.7;
  color: #7f826b;
}
.log-entry {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.log-entry > small {
  font-size: 8px;
  color: #989b7c;
  letter-spacing: 0.12em;
}
.log-entry p {
  font-size: 12px;
  line-height: 1.75;
  margin-top: 7px;
  color: #65765f;
}
.log-entry > b {
  font-size: 12px;
}
.result-card {
  padding: 18px 14px;
  margin-bottom: 12px;
  background: #e8ead5;
  display: flex;
  gap: 13px;
  border: 1px solid #d2d8b9;
  border-radius: 3px;
}
.result-card.failure {
  background: #f0e3cb;
  border-color: #dfd1b4;
}
.result-card strong {
  font-size: 13px;
}
.result-card p {
  font-size: 12px;
  margin: 7px 0;
}
.result-card small {
  font-size: 10px;
  color: #8a8e73;
}
.result-card > .icon {
  width: 18px;
  height: 18px;
}
.phone-ending {
  padding: 24px 3px;
}
.phone-ending .eyebrow {
  font-size: 8px;
  color: #8b7c5b;
}
.phone-ending h2 {
  font-size: 41px;
  margin: 18px 0 22px;
}
.phone-ending p {
  font-size: 14px;
  line-height: 1.8;
  color: #7b846d;
  margin: 15px 0;
}
.pause-banner {
  background: #b77950;
  color: var(--paper);
  padding: 12px;
  text-align: center;
  font-size: 12px;
}
.connection-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #64846c;
}
@media (min-width: 600px) {
  .phone,
  .join-screen {
    box-shadow: 0 0 80px #173b3c17;
  }
  .phone-content {
    padding-left: 32px;
    padding-right: 32px;
  }
  .join-screen {
    padding-left: 39px;
    padding-right: 39px;
  }
  .avatar-option {
    height: 107px;
  }
  .avatar-option .avatar {
    height: 100px;
    width: 86px;
  }
}
@media (max-width: 360px) {
  .phone-content {
    padding: 17px 16px;
  }
  .phone-header {
    padding: 18px 16px;
  }
  .needs-row {
    padding-left: 16px;
    padding-right: 16px;
  }
  .commit-bar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .task-choice {
    padding: 13px 11px;
  }
  .join-screen {
    padding-left: 19px;
    padding-right: 19px;
  }
  .join-intro h1 {
    font-size: 47px;
  }
  .avatar-option .avatar {
    width: 60px;
  }
  .game-facts {
    font-size: 9px;
  }
}
.task-choice strong {
  font-size: 14px;
}
.task-choice p {
  font-size: 12px;
}
.phone-event p {
  font-size: 14px;
}
