.host {
  height: 100dvh;
  min-height: 740px;
  position: relative;
  overflow: hidden;
}
.masthead {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 27px 4.4%;
  height: 86px;
}
.edition {
  font-size: 9px;
  letter-spacing: 0.16em;
  border-left: 1px solid #173c3c33;
  padding-left: 24px;
  color: var(--muted);
}
.host-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.host-tools .quiet {
  font-size: 11px;
}
.host-tools .icon {
  width: 17px;
}
.lobby-copy {
  position: absolute;
  z-index: 9;
  left: 7%;
  top: 18%;
  width: 40%;
}
.lobby-copy .eyebrow {
  font-size: 10px;
  color: #926542;
}
.lobby-copy h1 {
  font-size: clamp(88px, 8.8vw, 150px);
  line-height: 1.14;
  margin: 13px 0 12px;
}
.lobby-copy .lead {
  font-size: 21px;
  line-height: 1.55;
  letter-spacing: -0.025em;
}
.small-rule {
  width: 34px;
  height: 2px;
  background: var(--rust);
  margin: 23px 0 18px;
}
.lobby-description {
  font-size: 13px;
  line-height: 1.8;
  color: #4d6660;
}
.game-facts {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  margin-top: 24px;
  color: #53675f;
}
.game-facts i {
  width: 3px;
  height: 3px;
  background: #a39271;
  border-radius: 50%;
}
.lobby-crew {
  position: absolute;
  z-index: 12;
  bottom: 77px;
  left: 7%;
  right: 6.2%;
  max-width: 1170px;
}
.crew-heading {
  color: #e7e6ca;
  font-size: 9px;
}
.crew-seats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-top: 10px;
}
.crew-seat {
  height: 83px;
  padding: 7px 14px 7px 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  min-width: 0;
}
.crew-seat.occupied {
  background: #f6efd9;
  box-shadow: 0 5px 0 #193e3c2b;
  border-radius: 2px;
}
.crew-seat .avatar {
  width: 49px;
  height: 66px;
  flex-shrink: 0;
}
.crew-seat strong {
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.crew-seat span {
  font-size: 9px;
  color: #5c7369;
  white-space: nowrap;
}
.crew-seat span .presence {
  margin-right: 5px;
}
.crew-seat.empty {
  border: 1px dashed #bfd0bb66;
  color: #d2dfcc;
}
.crew-seat.empty span {
  color: #c0d0bb;
  font-size: 11px;
}
.empty-avatar {
  width: 44px;
  height: 48px;
  border-radius: 45% 45% 4px 4px;
  border: 1px dashed #bfd0bb66;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #b3c7af;
}
.remove-player {
  position: absolute;
  right: 4px;
  top: 2px;
  background: none;
  border: 0;
  color: #9a8e74;
  font-size: 17px;
}
.lobby-footer {
  position: absolute;
  bottom: 24px;
  left: 7%;
  right: 6.2%;
  display: flex;
  justify-content: space-between;
  z-index: 10;
  color: #abc1b0;
  font-size: 8px;
  letter-spacing: 0.15em;
}
.opening .masthead {
  color: var(--ink);
}
.opening .boat-rig {
  width: 52vw;
  max-width: 850px;
  left: 50%;
  top: 51%;
}
.opening .ocean-back {
  height: 39%;
}
.opening .ocean-mid {
  height: 27%;
}
.opening .ocean-front {
  height: 18%;
}
.intro-caption {
  position: absolute;
  z-index: 15;
  bottom: 7%;
  left: 50%;
  translate: -50% 0;
  width: min(690px, 80%);
  color: #fff5d9;
  text-align: center;
}
.intro-caption .eyebrow {
  color: #d4cfb4;
  font-size: 9px;
}
.intro-caption p {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.4;
  margin: 16px 0 22px;
  letter-spacing: -0.025em;
}
.story-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.story-dots i {
  height: 5px;
  width: 5px;
  background: #d3d4ba55;
  border-radius: 50%;
}
.story-dots .active {
  background: #efe8c9;
  width: 24px;
  border-radius: 3px;
}
.day-marker {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
  border-left: 1px solid #183e4030;
  padding-left: 25px;
}
.day-marker strong {
  font-size: 11px;
  letter-spacing: 0.12em;
}
.day-marker span {
  text-transform: capitalize;
  color: #66766c;
}
.journey-track {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 9px;
  letter-spacing: 0.06em;
  margin: 10px auto 0;
}
.journey-track > .icon {
  width: 15px;
}
.journey-track span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.journey-pips {
  display: flex;
  gap: 5px;
}
.journey-pips i {
  height: 5px;
  width: 23px;
  background: #183e4023;
  border-radius: 1px;
}
.journey-pips i.travelled {
  background: var(--rust);
}
.journey-track b {
  font-size: 14px;
}
.journey-track small {
  font-size: 9px;
  opacity: 0.6;
}
.story-card {
  position: absolute;
  left: 4.4%;
  top: 20%;
  width: 262px;
  z-index: 10;
}
.story-card .eyebrow {
  color: #806e52;
  font-size: 9px;
}
.story-card h2 {
  font-size: 39px;
  line-height: 1.1;
  margin: 14px 0 16px;
}
.story-card > p {
  font-size: 13px;
  line-height: 1.75;
  color: #4b655e;
}
.story-card .event-note {
  font-size: 10px;
  line-height: 1.7;
  margin-top: 15px;
  color: #778175;
}
.boat-conditions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 6px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #173e3a22;
}
.boat-conditions > span {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.boat-conditions .icon {
  width: 15px;
  height: 15px;
}
.watch-panel {
  position: absolute;
  top: 19%;
  right: 4.4%;
  width: 292px;
  z-index: 10;
  background: #fff9e9ed;
  padding: 21px 21px 18px;
  box-shadow: var(--shadow);
  border-radius: 2px;
  transform: rotate(0.4deg);
}
.watch-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.watch-heading .eyebrow {
  font-size: 8px;
}
.watch-heading button {
  font-size: 10px;
  padding: 0;
}
.crew-decision {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 91px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  position: relative;
}
.crew-decision .avatar {
  width: 40px;
  height: 58px;
  flex-shrink: 0;
}
.decision-main {
  min-width: 0;
  flex: 1;
}
.crew-name {
  display: flex;
  gap: 6px;
  align-items: center;
}
.crew-name strong {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 112px;
}
.crew-name small {
  font-size: 8px;
  color: #8b9785;
}
.crew-decision p {
  font-size: 10px;
  line-height: 1.5;
  margin-top: 5px;
  color: #5b7066;
}
.status-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.status-tags span {
  font-size: 8px;
  display: flex;
  gap: 3px;
  align-items: center;
}
.status-tags .icon {
  height: 10px;
  width: 10px;
}
.ready-mark {
  color: #a9ae96;
  font-size: 25px;
}
.ready-mark.locked {
  color: #5a8067;
}
.ready-mark .icon {
  width: 17px;
}
.crew-decision.is-dead {
  opacity: 0.4;
}
.watch-panel .primary {
  width: 100%;
  margin-top: 12px;
  font-size: 12px;
  padding: 14px 15px;
  min-height: 46px;
  gap: 10px;
}
.panel-note {
  font-size: 9px;
  color: #7b8475;
  line-height: 1.6;
  margin: 12px 0 0;
  text-align: center;
}
.offline-rest {
  position: absolute;
  right: 0;
  bottom: 6px;
  border: 0;
  background: #e8dec5;
  font-size: 9px;
  padding: 4px 7px;
}
.ship-bottom {
  position: absolute;
  z-index: 11;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 4.4% 22px;
  background: #173f40dd;
  color: #f1ebd4;
  border-top: 1px solid #c9d8bc33;
}
.shared-locker {
  display: flex;
  align-items: center;
  gap: 20px;
}
.shared-locker > .eyebrow {
  font-size: 8px;
  white-space: nowrap;
  color: #afc7b4;
}
.supply-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
}
.supply-strip > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.supply-strip .icon {
  width: 17px;
  height: 17px;
}
.supply-strip b {
  font-size: 13px;
  font-weight: 400;
}
.supply-strip small {
  font-size: 8px;
  color: #bfceba;
}
.supply-strip > p {
  font-size: 11px;
}
.captain-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid #d0dec022;
}
.captain-caption > span {
  color: #cbb87f;
}
.captain-caption > p {
  flex: 1;
  font-size: 11px;
  line-height: 1.65;
  color: #d4ddc8;
  max-height: 54px;
  overflow: auto;
}
.captain-caption button {
  font-size: 10px;
  color: #d4ddc8;
  white-space: nowrap;
}
.voyage .boat-rig {
  width: 44vw;
  left: 49%;
  top: 56%;
}
.voyage:has(.time-night) .masthead,
.voyage:has(.time-night) .journey-track {
  color: #eee5c9;
}
.voyage:has(.time-night) .day-marker span {
  color: #b2c6c0;
}
.voyage:has(.time-night) .story-card {
  color: #efe8d0;
}
.voyage:has(.time-night) .story-card > p {
  color: #bdceca;
}
.voyage:has(.time-night) .story-card .eyebrow {
  color: #bdb593;
}
.voyage:has(.time-night) .journey-pips i {
  background: #e2e6d32b;
}
.voyage:has(.time-night) .journey-pips .travelled {
  background: #d5a36a;
}
.ending .story-card {
  width: 300px;
}
.ending .story-card h2 {
  font-size: 49px;
}
.ending-count {
  font-weight: 700;
  margin-top: 20px;
}
.ending-lost .sea-scene {
  filter: saturate(0.35);
}
.pause-veil {
  position: fixed;
  inset: 0;
  background: #183e40ed;
  color: var(--paper);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}
.pause-veil h2 {
  font-size: 70px;
}
.pause-veil .primary {
  background: var(--paper);
  color: var(--ink);
}
@media (min-width: 1700px) {
  .lobby-copy {
    left: 9%;
  }
  .lobby-crew {
    left: 9%;
    right: 9%;
    max-width: none;
  }
  .lobby-crew .crew-seats {
    gap: 22px;
  }
  .lobby-copy .lead {
    font-size: 25px;
  }
  .lobby-description {
    font-size: 15px;
  }
  .story-card {
    width: 310px;
  }
  .story-card h2 {
    font-size: 46px;
  }
  .story-card > p {
    font-size: 15px;
  }
  .watch-panel {
    width: 330px;
  }
  .crew-decision {
    min-height: 107px;
  }
  .crew-name strong {
    font-size: 14px;
  }
  .crew-decision p {
    font-size: 12px;
  }
  .status-tags span {
    font-size: 10px;
  }
  .captain-caption > p {
    font-size: 13px;
  }
  .supply-strip small {
    font-size: 10px;
  }
}
@media (max-height: 830px) and (min-width: 901px) {
  .host {
    min-height: 700px;
  }
  .lobby-copy {
    top: 15%;
  }
  .lobby-copy h1 {
    font-size: 98px;
    margin: 8px 0;
  }
  .lobby-copy .lead {
    font-size: 18px;
  }
  .small-rule {
    margin: 16px 0;
  }
  .game-facts {
    margin-top: 16px;
  }
  .lobby-crew {
    bottom: 58px;
  }
  .crew-seat {
    height: 73px;
  }
  .lobby-footer {
    bottom: 20px;
  }
  .watch-panel {
    top: 19%;
    padding: 15px 18px;
  }
  .crew-decision {
    min-height: 77px;
    padding: 7px 0;
  }
  .story-card {
    top: 22%;
  }
  .story-card h2 {
    font-size: 34px;
  }
  .story-card > p {
    font-size: 12px;
  }
  .boat-conditions {
    margin-top: 16px;
    padding-top: 14px;
  }
  .ship-bottom {
    padding-top: 14px;
    padding-bottom: 16px;
  }
  .captain-caption {
    margin-top: 12px;
    padding-top: 10px;
  }
  .voyage .boat-rig {
    top: 57%;
  }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .edition {
    display: none;
  }
  .lobby-copy {
    left: 5%;
  }
  .lobby-copy h1 {
    font-size: 94px;
  }
  .lobby-copy .lead {
    font-size: 18px;
  }
  .lobby-crew {
    left: 5%;
    right: 4%;
  }
  .story-card {
    width: 210px;
    left: 3%;
  }
  .watch-panel {
    width: 245px;
    right: 3%;
  }
  .host-tools {
    gap: 4px;
  }
  .host-tools .icon-button span {
    display: none;
  }
  .story-card h2 {
    font-size: 32px;
  }
  .voyage .boat-rig {
    width: 47vw;
  }
  .supply-strip {
    gap: 8px 14px;
  }
  .supply-strip small {
    display: none;
  }
}
@media (max-width: 900px) {
  .host {
    min-height: 1150px;
    height: auto;
  }
  .masthead {
    padding: 22px 6%;
    height: 76px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .edition {
    display: none;
  }
  .host-tools {
    gap: 6px;
  }
  .host-tools .icon-button span {
    display: none;
  }
  .lobby-copy {
    top: 110px;
    left: 7%;
    width: 86%;
    text-align: center;
  }
  .lobby-copy h1 {
    font-size: 92px;
  }
  .lobby-copy .lead {
    font-size: 19px;
  }
  .small-rule {
    margin: 18px auto;
  }
  .lobby-description {
    display: none;
  }
  .game-facts {
    justify-content: center;
    margin-top: 15px;
  }
  .scene-lobby .boat-rig {
    display: none;
  }
  .lobby-crew {
    left: 7%;
    right: 7%;
    bottom: 68px;
  }
  .crew-seats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .crew-seat {
    height: 70px;
  }
  .lobby-footer {
    font-size: 6px;
    letter-spacing: 0.08em;
    left: 7%;
    right: 7%;
  }
  .lobby-crew .crew-heading {
    display: none;
  }
  .voyage {
    min-height: 1600px;
  }
  .voyage-header {
    height: 120px;
  }
  .day-marker {
    padding-left: 15px;
  }
  .journey-track {
    margin-top: 15px;
    gap: 8px;
  }
  .journey-track > span:first-child {
    display: none;
  }
  .journey-pips i {
    width: 13px;
  }
  .story-card {
    top: 190px;
    left: 7%;
    width: 86%;
  }
  .story-card h2 {
    font-size: 38px;
  }
  .boat-conditions {
    max-width: 320px;
  }
  .voyage .boat-rig {
    top: 600px;
    width: 90vw;
  }
  .watch-panel {
    top: 830px;
    left: 7%;
    width: 86%;
    right: auto;
    transform: none;
  }
  .watch-panel .crew-decision {
    min-height: 80px;
  }
  .ship-bottom {
    padding: 22px 7%;
    min-height: 180px;
  }
  .shared-locker {
    display: block;
  }
  .supply-strip {
    margin-top: 15px;
    gap: 10px;
  }
  .supply-strip small {
    display: none;
  }
  .caption-caption {
    align-items: flex-start;
  }
  .opening {
    min-height: 100dvh;
    height: 100dvh;
  }
  .opening .boat-rig {
    width: 100vw;
    top: 46%;
  }
  .intro-caption {
    bottom: 9%;
    width: 85%;
  }
  .intro-caption p {
    font-size: 23px;
  }
  .opening .masthead .quiet {
    font-size: 10px;
  }
  .opening .host-tools {
    display: none;
  }
  .ending .story-card {
    width: 86%;
  }
}
@media (max-width: 900px) {
  .lobby {
    min-height: 1350px;
  }
}
@media (max-height: 830px) and (min-width: 901px) {
  .host {
    min-height: 660px;
  }
  .watch-panel .crew-decision {
    min-height: 67px;
  }
  .watch-panel .crew-decision .avatar {
    height: 50px;
  }
  .watch-panel {
    padding: 14px 18px;
  }
  .watch-panel .panel-note {
    margin-top: 8px;
  }
}
