.roster-entry {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f9f4e7;
  border: 1px solid #bfa982;
  border-radius: 5px;
  box-shadow: 0 2px 4px #45351e17;
}
.roster-entry:has(.helper-card[aria-pressed="true"]) {
  outline: 2px solid #36664b;
}
.roster-entry .helper-card {
  width: 100%;
  height: 100%;
  border: 0;
  box-shadow: none;
}
.roster-entry .helper-card[aria-pressed="true"] {
  box-shadow: none;
}
.stat-link {
  font:
    600 12px/1.35 Inter,
    Arial,
    sans-serif;
  color: #425d4b;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.roster-entry > .stat-link {
  align-self: stretch;
  margin: 0 7px;
  border-top: 1px solid #ded2b9;
  padding: 8px 2px;
}
.party-strengths {
  border-block: 1px solid #766f50;
  margin: 12px 0;
  padding: 10px 0;
}
.party-strengths > strong {
  color: inherit;
}
.party-values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.party-values span {
  padding: 3px 6px;
  border: 1px solid #a39777;
  border-radius: 4px;
  font-size: 11px;
}
.party-strengths .stat-link {
  padding: 7px 0 0;
  color: inherit;
}
.rating-sheet {
  background: #f7f1e1;
  color: #332c22;
  border: 2px solid #ab8a52;
  border-radius: 8px;
  padding: 24px;
  width: min(430px, calc(100vw - 24px));
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 12px 50px #171d16aa;
}
.rating-sheet::backdrop {
  background: #101911aa;
}
.rating-sheet form {
  float: right;
}
.rating-sheet form button {
  width: 36px;
  height: 36px;
  border: 1px solid #b8a47a;
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}
.rating-sheet h2 {
  font:
    600 33px Crimson,
    Georgia;
  margin: 7px 0;
}
.rating-sheet ul {
  padding: 0;
  list-style: none;
}
.rating-sheet li {
  padding: 9px 0;
  border-top: 1px solid #d9ccb4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.rating-sheet li small,
.rating-sheet li strong {
  display: block;
}
.rating-sheet li b {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  background: #e9e6ce;
  border: 1px solid #b8b292;
  border-radius: 50%;
  color: #344b38;
}
.quest-board .brief-situation {
  max-width: 74ch;
}
.quest-board .route-hint {
  margin: -4px 0 12px;
  font-size: 13px;
}
.quest-board .route-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  justify-content: flex-start;
  padding: 0;
  gap: 0;
  min-width: 0;
  background: #f8f1df;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.quest-board .route-card[aria-pressed="true"] {
  background: #edf0df;
  outline: 2px solid #4c684d;
  outline-offset: 0;
}
.route-art {
  position: relative;
  display: block;
  height: clamp(100px, 12vw, 155px);
  background: #85744e;
  overflow: hidden;
}
.route-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.route-art > span {
  position: absolute;
  top: 7px;
  left: 7px;
  background: #233b2cee;
  color: white;
  padding: 3px 8px;
  border: 1px solid #c4b480;
  border-radius: 3px;
  font:
    600 10px/1.5 Inter,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.route-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 13px;
  gap: 8px;
}
.route-info > strong {
  font:
    600 clamp(18px, 2vw, 25px)/1.06 Crimson,
    Georgia;
}
.route-detail {
  font-size: 12px;
  line-height: 1.42;
  color: #564c3c;
}
.meters {
  display: grid;
  gap: 5px;
  margin-top: auto;
}
.skill-meter {
  display: block;
  font-size: 11px;
}
.skill-meter > span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.skill-meter > i {
  background: #dacfb6;
  display: block;
  overflow: hidden;
  border-radius: 5px;
  height: 5px;
  margin: 2px 0;
}
.skill-meter i i {
  display: block;
  height: 100%;
}
.skill-meter .short {
  background: #b4803c;
}
.skill-meter .met {
  background: #477255;
}
.route-info .risk {
  font-size: 11px;
  margin: 0;
  line-height: 1.3;
}
.forecast-panel {
  border: 1px solid #b8a57c;
  border-radius: 6px;
  background: #e9ebd9;
  padding: 16px;
  margin: 20px 0;
}
.forecast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.forecast-head strong {
  display: block;
  font:
    600 23px/1.05 Crimson,
    Georgia;
}
.forecast-number {
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
  color: #31563e;
}
.forecast-number b {
  font:
    600 35px/0.9 Crimson,
    Georgia;
}
.forecast-panel p {
  margin: 8px 0;
  font-size: 13px;
}
.forecast-panel summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 0;
}
.contributions,
.forecast-ledger {
  padding: 0;
  list-style: none;
}
.contributions span,
.contributions strong {
  display: block;
  font-size: 13px;
}
.contributions li {
  margin: 8px 0;
}
.forecast-ledger li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-top: 1px solid #c9cbba;
  font-size: 12px;
}
.recap-party {
  display: flex;
  gap: 16px;
  margin: 16px 0;
}
.recap-party > div {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.recap-party strong {
  font-size: 12px;
}
.token-score {
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyeball-token {
  display: grid;
  place-items: center;
  border: 3px double #d4ac59;
  border-radius: 50%;
  background: #e3c17a;
  color: #49361b;
  width: 42px;
  height: 42px;
  box-shadow: 0 3px 0 #96723b;
}
.eyeball-token svg {
  width: 30px;
  height: 30px;
}
.score-entry > strong {
  border-radius: 16px;
  background: #e9e0c8;
  padding: 2px 8px;
  font-variant-numeric: tabular-nums;
}
.token-score .eyeball-token {
  animation: token-arrival 0.55s ease-out both;
}
@keyframes token-arrival {
  from {
    transform: translateY(-12px) rotate(-35deg);
    opacity: 0.3;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (max-width: 760px) {
  .quest-board .route-card {
    display: grid;
    grid-template-columns: clamp(75px, 19vw, 120px) minmax(0, 1fr);
  }
  .route-art {
    height: 100%;
    min-height: 110px;
  }
  .route-info {
    padding: 10px;
    gap: 5px;
  }
  .route-info > strong {
    font-size: 20px;
  }
  .route-detail {
    font-size: 12px;
  }
  .quest-board .move-grid {
    gap: 6px;
  }
  .quest-board .move-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 8px;
    padding: 9px 10px;
  }
  .quest-board .move-card .portrait {
    width: 36px;
    height: 36px;
  }
  .quest-board .move-card .move-heading {
    grid-column: 1;
    grid-row: 1;
  }
  .quest-board .move-heading strong {
    font-size: 14px;
  }
  .move-card .move-heading small {
    font-size: 10px;
  }
  .quest-board .move-card p {
    grid-column: 1/-1;
    margin: 0;
    font-size: 12px;
  }
  .quest-board .move-btn {
    grid-column: 2;
    grid-row: 1;
    padding: 6px;
    font-size: 11px;
  }
  .quest-board .move-reason,
  .quest-board .move-card label {
    grid-column: 1/-1;
    margin: 0;
  }
  .forecast-head strong {
    font-size: 20px;
  }
  .forecast-number b {
    font-size: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .token-score .eyeball-token {
    animation: none;
  }
}
.contributions li small {
  display: block;
  color: #605546;
}
.suited-briefs {
  margin: 16px 0;
  padding: 12px;
  background: #e9ebda;
  border: 1px solid #bcc4a4;
  border-radius: 5px;
}
.suited-briefs h3 {
  font:
    600 22px/1.1 Crimson,
    Georgia,
    serif;
  margin: 0 0 8px;
}
.suited-briefs article + article {
  border-top: 1px solid #c7ccb4;
  padding-top: 7px;
  margin-top: 7px;
}
.suited-briefs article > * {
  display: block;
}
.suited-briefs article span {
  font-size: 13px;
}
.suited-briefs article small {
  color: #495e46;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.4;
}
.recruit-itinerary {
  border-block: 1px solid #c7b898;
  padding: 8px 0;
  margin: 0 0 15px;
}
.recruit-itinerary h3 {
  font:
    600 19px/1.1 Crimson,
    Georgia;
  margin: 0 0 7px;
}
.recruit-itinerary ol {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.recruit-itinerary ol li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.recruit-itinerary ol img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #b4a481;
}
.recruit-itinerary ol small {
  display: block;
  font:
    600 9px/1.4 Inter,
    sans-serif;
  color: #6e5a3c;
  letter-spacing: 0.06em;
}
.recruit-itinerary ol strong {
  display: block;
  font:
    600 16px/1.05 Crimson,
    Georgia;
}
.recruit-itinerary details {
  margin-top: 6px;
}
.recruit-itinerary summary {
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: #405a47;
  padding: 4px 0;
}
.recruit-itinerary details > div {
  border-top: 1px solid #dacfb7;
  margin-top: 5px;
  padding: 6px;
}
.recruit-itinerary details ul {
  padding-left: 18px;
  margin: 3px 0;
  font-size: 13px;
}
.recruit-itinerary details li small {
  display: block;
  color: #645d50;
}
@media (max-width: 520px) {
  .recruit-itinerary ol li {
    display: block;
  }
  .recruit-itinerary ol img {
    height: 36px;
    width: 100%;
    display: block;
    margin-bottom: 4px;
  }
  .recruit-itinerary ol strong {
    font-size: 15px;
  }
}
.suited-briefs em {
  font:
    600 10px/1.25 Inter,
    sans-serif;
  color: #31583d;
  border: 1px solid #90a58b;
  border-radius: 3px;
  padding: 1px 3px;
  white-space: nowrap;
}
