:root {
  --ink: #254d47;
  --muted: #718079;
  --paper: #f6f3e9;
  --line: #d5d9cc;
  --green: #427b69;
  --orange: #be754e;
  --light: #e5ecdf;
  --serif: Georgia, "Noto Serif TC", "Songti TC", serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.65 system-ui,
    -apple-system,
    "Microsoft JhengHei",
    sans-serif;
  background-image: radial-gradient(#54735f0e 0.8px, transparent 0.8px);
  background-size: 5px 5px;
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdf6;
  min-height: 44px;
  padding: 9px 14px;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover:not(:disabled) {
  background: #e5ecdf;
  border-color: #86a38f;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #cb854e;
  outline-offset: 3px;
}
button svg,
.symbol svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.primary {
  background: var(--ink);
  color: #fff8e7;
  border-color: var(--ink);
}
button.primary:hover:not(:disabled) {
  background: #3d6b5d;
}
.quiet {
  background: transparent;
  border-color: transparent;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
}
h1 {
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.25;
  letter-spacing: 0.04em;
}
h2 {
  font-size: 25px;
}
h3 {
  font-size: 18px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
}
small,
.muted {
  color: var(--muted);
}
header {
  max-width: 1480px;
  margin: auto;
  padding: 22px 38px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.brand .symbol {
  border: 1px solid var(--ink);
  height: 39px;
  width: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.brand small {
  font: 9px/1.5 system-ui;
  display: block;
  letter-spacing: 0.2em;
}
nav {
  display: flex;
  gap: 8px;
}
main {
  max-width: 1480px;
  margin: auto;
  padding: 25px 38px 42px;
}
.landing {
  padding-top: 56px;
}
.hero {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: 40px;
  align-items: center;
}
.hero-copy > p {
  margin: 22px 0;
  color: #63776c;
  line-height: 1.9;
  font-size: 16px;
}
.hero-copy .eyebrow {
  margin-bottom: 20px;
  font-size: 11px;
}
.hero-title span {
  color: #789378;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-actions button {
  padding: 14px 24px;
}
.hero-note {
  font-size: 12px !important;
}
.stamp {
  display: inline-block;
  transform: rotate(-5deg);
  border: 1px solid #b6805a;
  color: #a46d48;
  padding: 5px 10px;
  letter-spacing: 0.12em;
  font-size: 12px;
}
.map-wrap {
  position: relative;
  aspect-ratio: 900/630;
  border: 1px solid #bdccba;
  border-radius: 7px;
  overflow: hidden;
  background: #e4e5d3;
  isolation: isolate;
  box-shadow: 0 12px 40px #385b4710;
}
.map-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}
.map-pin {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  width: 126px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 10px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.map-pin:hover:not(:disabled) {
  background: #fff9;
}
.map-pin.selected {
  background: #f9f8e8a6;
  outline: 2px solid #487e6a;
  outline-offset: 2px;
}
.map-pin > svg {
  width: 90px;
  height: 79px;
  filter: drop-shadow(0 4px 2px #2a554018);
}
.pin-label {
  background: #fffcefec;
  border: 1px solid #c2cebb;
  box-shadow: 0 2px 3px #274f4012;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 600;
}
.pin-health {
  display: block;
  width: 58px;
  height: 4px;
  background: #d3d8c9;
  margin-top: 5px;
  border-radius: 4px;
  overflow: hidden;
}
.pin-health i {
  display: block;
  height: 100%;
  background: #518f71;
}
.pin-health i.low {
  background: #b67352;
}
.pin-number {
  font-size: 10px;
  background: #fff9;
  padding: 0 4px;
  margin-top: 2px;
}
.map-overlay {
  position: absolute;
  left: 15px;
  bottom: 13px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 85%;
  pointer-events: none;
}
.map-badge {
  background: #fffcefe8;
  border: 1px solid #becbbd;
  padding: 4px 9px;
  font-size: 11px;
  border-radius: 3px;
}
.map-badge.bad {
  color: #ad6247;
  border-color: #d6a18b;
}
.drain-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.drain-flow path {
  stroke: #528e9a;
  stroke-width: 4;
  stroke-dasharray: 8 7;
  fill: none;
  animation: flow 2s linear infinite;
}
.rain-layer {
  position: absolute;
  inset: -100px;
  background-image: repeating-linear-gradient(
    105deg,
    transparent 0 22px,
    #517d8c1b 23px 24px,
    transparent 25px 55px
  );
  pointer-events: none;
  z-index: 2;
  animation: rain 1.4s linear infinite;
  opacity: var(--rain, 0);
}
@keyframes flow {
  to {
    stroke-dashoffset: -30;
  }
}
@keyframes rain {
  to {
    transform: translate(-12px, 35px);
  }
}
.intro-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
  margin-top: 45px;
  padding-top: 24px;
  gap: 30px;
}
.intro-bottom b {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}
.intro-bottom p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 13px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.section-head p {
  font-size: 12px;
  color: var(--muted);
}
.day-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
}
.day-heading h1 {
  font-size: 29px;
  letter-spacing: 0.03em;
}
.day-heading h1 small {
  font-family: system-ui;
  font-size: 12px;
  letter-spacing: 0;
  margin-left: 12px;
}
.day-heading > p {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.timeline {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 19px;
}
.tick {
  flex: 1;
  height: 6px;
  background: #dfe4d7;
  border-radius: 4px;
}
.tick.past {
  background: #93aa90;
}
.tick.now {
  background: #ce9561;
  box-shadow: 0 0 0 3px #ce956118;
}
.tick.storm {
  background: #b7c8c7;
}
.tick.storm.now {
  background: #416d77;
}
.resources {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  background: #fffdf3;
  border-radius: 6px;
  margin-bottom: 24px;
  padding: 13px 0;
}
.resource {
  padding: 0 16px;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 11px;
  align-items: center;
}
.resource:last-child {
  border: 0;
}
.resource .symbol {
  color: #7b927e;
}
.resource b {
  font: 24px/1.2 var(--serif);
  margin-right: 4px;
}
.resource small {
  display: block;
  font-size: 10px;
}
.resource .reserve {
  font-size: 10px;
  color: #a96c4d;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
  gap: 24px;
  align-items: start;
}
.weather-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #e9eee4;
  border: 1px solid #cdd8c5;
  border-radius: 6px;
  padding: 14px 17px;
  margin-bottom: 15px;
}
.weather-data {
  display: flex;
  gap: 16px;
  font-family: var(--serif);
  font-size: 21px;
}
.weather-data svg {
  width: 21px;
  height: 21px;
  vertical-align: middle;
}
.forecast-small {
  font-size: 11px;
  color: #647e71;
}
.place-detail {
  margin-top: 16px;
  border-left: 3px solid #93ad8c;
  padding-left: 14px;
  font-size: 12px;
  color: #748173;
}
.place-detail b {
  display: block;
  color: var(--ink);
  font-size: 14px;
}
.crew-section {
  margin-top: 24px;
}
.crew-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.crew {
  padding: 12px 7px 9px;
  min-width: 0;
  text-align: center;
  background: #fffdf5;
  position: relative;
}
.crew.selected {
  border-color: #3c7d67;
  box-shadow: inset 0 0 0 1px #3c7d67;
  background: #edf2e7;
}
.crew > svg {
  width: 52px;
  height: 57px;
  display: block;
  margin: 0 auto 5px;
}
.crew strong {
  display: block;
  font-size: 13px;
}
.crew .role {
  font-size: 10px;
  display: block;
  color: var(--muted);
}
.fatigue {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: 7px 0;
}
.fatigue i {
  width: 12px;
  height: 3px;
  background: #dfe3d7;
}
.fatigue i.on {
  background: #bd9061;
}
.crew .assignment {
  font-size: 10px;
  display: block;
  line-height: 1.4;
  min-height: 28px;
}
.crew .badge {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 9px;
  color: #467965;
}
.task-panel {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.panel-head {
  padding: 19px 20px 15px;
  border-bottom: 1px solid var(--line);
  background: #eef1e7;
}
.panel-head .eyebrow {
  margin-bottom: 5px;
}
.selected-person {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 8px;
  font-size: 12px;
}
.selected-person strong {
  font-size: 14px;
}
.task-list {
  max-height: 570px;
  overflow: auto;
  padding: 7px 17px;
}
.task {
  padding: 14px 0;
  border-bottom: 1px solid #e3e5db;
}
.task:last-child {
  border: 0;
}
.task-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.task h3 {
  font-size: 16px;
}
.task .done {
  font-size: 10px;
  color: #5d8770;
  border: 1px solid #b4cbb5;
  padding: 1px 5px;
  white-space: nowrap;
}
.task p {
  font-size: 12px;
  color: #6b7e71;
  margin-top: 6px;
  line-height: 1.7;
}
.task-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}
.task-cost {
  font-size: 10px;
  color: #7b887c;
}
.task button {
  font-size: 12px;
  min-width: 90px;
  padding: 7px 11px;
}
.task .reason {
  font-size: 10px;
  color: #a4775e;
}
.project-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
}
.project-progress i {
  width: 22px;
  height: 4px;
  background: #e2e7db;
}
.project-progress i.done {
  background: #7d9b72;
  border: 0;
  padding: 0;
}
.project-progress small {
  margin-left: 5px;
  font-size: 10px;
}
.commit-bar {
  margin-top: 19px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #e9eee3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.commit-bar p {
  font-size: 12px;
  color: #667c6a;
}
.commit-bar button {
  min-width: 160px;
}
.journal {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.journal summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 17px;
}
.journal ol {
  padding-left: 23px;
  max-height: 230px;
  overflow: auto;
  font-size: 12px;
  color: #6d7d70;
}
.journal li {
  margin-bottom: 8px;
}
.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.storage-warning {
  padding: 10px 18px;
  background: #f6e9d3;
  color: #90603c;
  border-bottom: 1px solid #d9c2a0;
  font-size: 12px;
}
.ending {
  max-width: 1100px;
  margin: 35px auto;
}
.ending-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 30px;
}
.ending h1 {
  font-size: 45px;
  margin: 16px 0;
}
.ending-intro > p {
  color: var(--muted);
  margin: 15px 0;
}
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.outcome-card {
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 18px;
}
.outcome-card > svg {
  width: 100px;
  height: 85px;
  float: right;
}
.outcome-card p {
  font-size: 13px;
  margin-top: 10px;
  color: #6f7e72;
}
.outcome-card small {
  display: block;
}
.ending-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}
.empty {
  padding: 30px 10px;
  color: var(--muted);
}
dialog {
  border: 1px solid #aebbab;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  width: min(650px, calc(100% - 30px));
  max-height: 90dvh;
  box-shadow: 0 24px 90px #173d4350;
}
dialog::backdrop {
  background: #17393680;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.dialog-head h2 {
  font-size: 23px;
}
.dialog-body {
  padding: 23px 25px;
}
.dialog-body > p {
  margin-bottom: 15px;
  color: #687b6e;
}
.dialog-body label {
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
}
.dialog-body input {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffef7;
  color: var(--ink);
}
.storm-choices {
  display: grid;
  gap: 10px;
  margin: 15px 0 23px;
}
.storm-option {
  text-align: left;
  display: block;
  width: 100%;
}
.storm-option.selected {
  border-color: #4c8269;
  background: #e7eedf;
}
.storm-option strong {
  display: block;
}
.storm-option small {
  display: block;
  font-size: 12px;
}
.dialog-action {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.preview-list {
  margin: 14px 0;
  border-top: 1px solid var(--line);
}
.preview-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 12px;
}
.loss {
  color: #b26946;
}
.good {
  color: #4f8469;
}
.event-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.event-person svg {
  width: 65px;
  height: 72px;
}
.event-choice {
  width: 100%;
  display: block;
  text-align: left;
  margin-top: 10px;
  padding: 14px;
}
.event-choice small {
  display: block;
  margin-top: 4px;
}
.help-copy h3 {
  margin: 20px 0 7px;
}
.help-copy p {
  font-size: 13px;
  color: #6b7c70;
}
.collection {
  margin-top: 20px;
  font-size: 12px;
  color: #819079;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  background: #254d47;
  color: #fff9e8;
  padding: 12px 20px;
  border-radius: 5px;
  box-shadow: 0 6px 25px #254d4730;
  z-index: 10;
  font-size: 13px;
}
#toast[hidden] {
  display: none;
}
@media (min-width: 1100px) {
  .task-panel {
    position: sticky;
    top: 15px;
  }
}
@media (max-width: 1100px) {
  header {
    padding: 18px 25px;
  }
  main {
    padding: 23px 25px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr);
    gap: 18px;
  }
  .map-pin {
    width: 100px;
  }
  .map-pin > svg {
    width: 76px;
    height: 65px;
  }
  .pin-label {
    font-size: 10px;
  }
  .hero {
    gap: 25px;
  }
  .task-list {
    max-height: 620px;
  }
  .resource {
    padding: 0 10px;
  }
}
@media (max-width: 820px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .task-list {
    max-height: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    max-width: 650px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero .map-wrap {
    margin-top: 5px;
  }
  .landing {
    padding-top: 25px;
  }
  .hero-note {
    margin-bottom: 0 !important;
  }
  .intro-bottom {
    gap: 18px;
  }
  .crew-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .commit-bar {
    position: sticky;
    bottom: 9px;
    z-index: 3;
    box-shadow: 0 5px 25px #2b4c3b20;
  }
  .resources {
    margin-bottom: 17px;
  }
  .task-panel {
    margin-top: 3px;
  }
  .map-pin > svg {
    width: 90px;
    height: 78px;
  }
  .pin-label {
    font-size: 12px;
  }
  .outcome-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  header {
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 20px;
  }
  nav {
    gap: 2px;
  }
  nav button {
    padding: 6px 9px;
    font-size: 12px;
  }
  .brand small {
    font-size: 8px;
  }
  main {
    padding: 20px 16px 25px;
  }
  .hero h1 {
    font-size: 45px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .hero-actions {
    margin-top: 18px;
  }
  .hero-actions button {
    padding: 11px 18px;
  }
  .intro-bottom {
    grid-template-columns: 1fr;
    margin-top: 25px;
    gap: 20px;
  }
  .intro-bottom b {
    font-size: 20px;
  }
  .map-wrap {
    aspect-ratio: 1.13;
  }
  .map-base {
    width: 100%;
    height: 100%;
  }
  .map-pin {
    width: 87px;
    min-height: 80px;
  }
  .map-pin > svg {
    width: 64px;
    height: 56px;
  }
  .pin-label {
    font-size: 10px;
    padding: 2px 4px;
  }
  .pin-health {
    width: 45px;
  }
  .map-overlay {
    bottom: 7px;
    left: 8px;
    gap: 4px;
  }
  .map-badge {
    font-size: 9px;
    padding: 3px 5px;
  }
  .day-heading {
    align-items: flex-start;
  }
  .day-heading h1 {
    font-size: 24px;
  }
  .day-heading h1 small {
    display: block;
    margin: 5px 0 0;
    font-size: 11px;
  }
  .day-heading > p {
    font-size: 10px;
    max-width: 110px;
  }
  .resources {
    grid-template-columns: repeat(3, 1fr);
    padding: 10px 0;
    row-gap: 13px;
  }
  .resource {
    padding: 0 10px;
    gap: 7px;
  }
  .resource b {
    font-size: 23px;
  }
  .resource:nth-child(3) {
    border: 0;
  }
  .resource svg {
    width: 17px;
    height: 17px;
  }
  .weather-bar {
    padding: 11px 12px;
  }
  .weather-data {
    font-size: 18px;
    gap: 10px;
  }
  .weather-bar h3 {
    font-size: 16px;
  }
  .weather-bar small {
    font-size: 10px;
  }
  .forecast-small {
    font-size: 10px;
  }
  .crew-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }
  .crew {
    padding: 8px 5px;
  }
  .crew > svg {
    width: 43px;
    height: 47px;
  }
  .crew .assignment {
    min-height: 14px;
  }
  .section-head p {
    font-size: 10px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .crew-section {
    margin-top: 20px;
  }
  .panel-head {
    padding: 15px;
  }
  .task-list {
    padding: 5px 15px;
  }
  .commit-bar {
    padding: 12px;
    gap: 9px;
  }
  .commit-bar button {
    min-width: 125px;
    padding: 9px;
    font-size: 12px;
  }
  .commit-bar p {
    font-size: 10px;
  }
  .commit-bar strong {
    font-size: 12px;
  }
  .footer {
    font-size: 9px;
    gap: 10px;
  }
  .dialog-head {
    padding: 15px 18px;
  }
  .dialog-head h2 {
    font-size: 21px;
  }
  .dialog-body {
    padding: 18px;
  }
  .outcome-grid {
    grid-template-columns: 1fr;
  }
  .ending h1 {
    font-size: 33px;
  }
  .ending {
    margin-top: 20px;
  }
  .outcome-card {
    min-height: 150px;
  }
  .ending-actions {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.hero-title {
  font-size: clamp(36px, 4.2vw, 60px);
}
.selected-person select {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #b9cbb7;
  background: #fafcf4;
  color: var(--ink);
  border-radius: 4px;
  padding: 7px;
  font-size: 12px;
}
.mobile-dock {
  display: none;
}
@media (min-width: 821px) {
  .workspace .map-wrap {
    aspect-ratio: 900/510;
  }
  .map-pin > svg {
    height: 65px;
    width: 76px;
  }
  .map-pin {
    min-height: 80px;
  }
}
@media (max-width: 820px) {
  main[data-screen="board"] {
    padding-bottom: 100px;
  }
  .commit-bar {
    position: static;
  }
  .commit-bar button {
    display: none;
  }
  .mobile-dock {
    display: flex;
    position: fixed;
    bottom: 10px;
    left: 16px;
    right: 16px;
    z-index: 5;
    padding: 11px 13px;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    background: #f5f5eaf5;
    border: 1px solid #b8cbb5;
    border-radius: 6px;
    box-shadow: 0 5px 30px #183c3325;
    backdrop-filter: blur(8px);
  }
  .mobile-dock > span {
    font-size: 12px;
  }
  .mobile-dock small {
    font-size: 10px;
  }
  .mobile-dock button {
    font-size: 12px;
  }
  .selected-person {
    flex-wrap: wrap;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 36px;
  }
}

.scenario-banner {
  display: flex;
  gap: 22px;
  align-items: center;
  background: #edf0e4;
  border: 1px solid #c7d1be;
  padding: 15px 19px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.scenario-banner > div {
  min-width: 145px;
}
.scenario-banner p {
  font-size: 12px;
  color: #64766a;
}
.scenario-banner small {
  font-size: 11px;
}
.scenario-choices {
  display: grid;
  gap: 9px;
  margin: 12px 0 24px;
}
.scenario-option {
  text-align: left;
  padding: 13px 15px;
  display: grid;
  gap: 4px;
}
.scenario-option strong {
  font-family: var(--serif);
  font-size: 19px;
}
.scenario-option > span:not(.eyebrow) {
  font-size: 12px;
}
.scenario-option small {
  font-size: 11px;
}
.scenario-option.selected {
  border-color: #4c8269;
  background: #e7eedf;
  box-shadow: inset 3px 0 #4c8269;
}
.story-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 20px;
}
.story-strip article {
  padding: 13px 16px;
  border-left: 3px solid #b0b99b;
  background: #efeee3;
}
.story-strip h3 {
  font-size: 16px;
  margin: 3px 0;
}
.story-strip article > p:last-child {
  font-size: 12px;
  color: #6d7a6c;
  line-height: 1.7;
}
.story-strip.final {
  margin: 20px 0 25px;
}
.story-strip.final article {
  padding: 20px;
  background: #fdfbf1;
  border: 1px solid #d5d9cc;
  border-top: 3px solid #91aa89;
}
.story-history article {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.story-history article h3 {
  font-size: 17px;
}
.story-history article p {
  font-size: 13px;
}
.story-history small,
.event-position {
  font-size: 11px;
  color: #6b826f;
}
.ending-scenario {
  text-align: center;
  margin-bottom: 18px;
  color: #7a876e;
  font-size: 13px;
}
@media (max-width: 600px) {
  .scenario-banner {
    display: block;
    padding: 13px;
  }
  .scenario-banner > div {
    margin-bottom: 7px;
  }
  .story-strip {
    grid-template-columns: 1fr;
  }
  .story-strip article {
    padding: 10px 13px;
  }
  .brand {
    font-size: 18px;
  }
  nav {
    flex-wrap: wrap;
  }
  header {
    gap: 5px;
  }
  .dialog-body .story-strip {
    grid-template-columns: 1fr;
  }
}
