.briefing {
  max-height: calc(100% - 1rem);
  overflow: auto;
  overscroll-behavior: contain;
}
.campaign-summaries {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: .12rem;
}
.resident-panel {
  margin: 0 0 .8rem;
  padding: .65rem;
  color: #2d2227;
  background: linear-gradient(145deg, #e7d8b4, #c9ad78);
  border: 2px solid #6e5360;
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.5), 0 4px 0 #6d4d39;
}
.resident-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .55rem;
}
.resident-heading h2 { margin: 0; font-family: Georgia, serif; font-size: .92rem; }
.resident-heading p { margin: 0; color: #684e57; font-size: .62rem; font-weight: 900; text-align: right; }
.resident-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.resident-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: .45rem;
  padding: .42rem;
  background: #fff8df;
  border: 2px solid #86636a;
  border-radius: 10px;
}
.resident-card > img { width: 68px; height: 51px; object-fit: cover; border-radius: 7px; box-shadow: 0 2px 0 #5b4136; }
.resident-copy { min-width: 0; }
.resident-copy .panel-label { margin: 0 0 .08rem; font-size: .48rem; }
.resident-copy h3 { margin: 0; font: 900 .76rem/1 Georgia, serif; }
.resident-copy strong { display: inline-block; margin-top: .16rem; padding: .12rem .32rem; color: #fff; background: #66505c; border-radius: 999px; font-size: .5rem; text-transform: uppercase; letter-spacing: .06em; }
.resident-copy p { margin: .18rem 0; font-size: .54rem; line-height: 1.25; }
.resident-copy small, .resident-copy em { display: block; font-size: .48rem; line-height: 1.25; }
.resident-copy small { color: #6e4b3e; font-weight: 900; }
.resident-copy em { margin-top: .16rem; color: #735e66; font-style: normal; }
.resident-rallied, .resident-trusted, .resident-prepared { border-color: #527c45; box-shadow: inset 0 0 0 2px #bde29e; }
.resident-shaken, .resident-injured, .resident-hungry { border-color: #a84943; box-shadow: inset 0 0 0 2px #efad91; }
.resident-rallied strong, .resident-trusted strong, .resident-prepared strong { background: #4f7b47; }
.resident-shaken strong, .resident-injured strong, .resident-hungry strong { background: #9d453f; }
.resident-summary {
  overflow: hidden;
  max-width: 34ch;
  margin: 0;
  color: #f4dba4;
  font-size: .58rem;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resident-result {
  margin: .8rem 0;
  padding: .65rem;
  color: #2d2227;
  background: linear-gradient(145deg, #efe0bd, #c5a875);
  border: 2px solid #70555f;
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.48);
}
.resident-result[hidden] { display: none; }
.resident-result-heading { margin-bottom: .55rem; }
.resident-result-heading .panel-label { margin: 0 0 .12rem; }
.resident-result-heading h3 { margin: 0; font: 900 .92rem/1.1 Georgia, serif; }
.resident-result-heading > p:last-child { margin: .25rem 0 0; font-size: .56rem; line-height: 1.3; }
.resident-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.resident-result-card {
  min-width: 0;
  overflow: hidden;
  background: #fff8df;
  border: 2px solid #80606a;
  border-radius: 10px;
}
.resident-result-card.changed { box-shadow: inset 0 0 0 2px rgba(255,255,255,.65); }
.resident-result-art {
  position: relative;
  width: 160px;
  height: 120px;
  margin: .45rem auto 0;
  overflow: hidden;
  background: #302a31;
  border: 2px solid #70555f;
  border-radius: 8px;
}
.resident-result-art img {
  position: absolute;
  top: 0;
  left: 0;
  width: 480px;
  height: 120px;
  max-width: none;
  transform: translateX(0);
}
.resident-result-art.frame-1 img { transform: translateX(-160px); }
.resident-result-art.frame-2 img { transform: translateX(-320px); }
.resident-result-copy { padding: .45rem; }
.resident-result-copy .panel-label { margin: 0 0 .08rem; font-size: .46rem; }
.resident-result-copy h4 { margin: 0; font: 900 .72rem/1 Georgia, serif; }
.resident-transition { display: flex; align-items: center; flex-wrap: wrap; gap: .28rem; margin: .28rem 0; font-size: .54rem; }
.resident-transition span { color: #6f5961; }
.resident-transition b { color: #74543f; }
.resident-transition strong { padding: .1rem .28rem; color: #fff; background: #66505c; border-radius: 999px; text-transform: uppercase; letter-spacing: .045em; }
.resident-result-copy > p:not(.panel-label):not(.resident-transition) { margin: .2rem 0; font-size: .5rem; line-height: 1.25; }
.resident-result-copy small, .resident-result-copy em { display: block; font-size: .47rem; line-height: 1.25; }
.resident-result-copy small { color: #684737; font-weight: 900; }
.resident-result-copy em { margin-top: .16rem; color: #6f5961; font-style: normal; }
@media (max-width: 980px) {
  .campaign-summaries { grid-column: 1 / -1; grid-row: 3; justify-self: center; }
}
@media (max-width: 800px) {
  .resident-grid, .resident-result-grid { grid-template-columns: 1fr; }
  .resident-card { grid-template-columns: 58px 1fr; }
  .resident-card > img { width: 58px; height: 44px; }
  .resident-result-card { display: grid; grid-template-columns: 160px 1fr; }
  .resident-result-art { margin: 0; border-width: 0 2px 0 0; border-radius: 0; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .campaign-summaries { grid-column: auto; grid-row: auto; }
  .resident-panel { padding: .4rem; margin-bottom: .4rem; }
  .resident-heading { margin-bottom: .3rem; }
  .resident-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; }
  .resident-card { grid-template-columns: 42px 1fr; gap: .3rem; padding: .3rem; }
  .resident-card > img { width: 42px; height: 32px; }
  .resident-copy p, .resident-copy small, .resident-copy em, .resident-copy .panel-label { display: none; }
  .resident-copy h3 { font-size: .62rem; }
  .resident-copy strong { font-size: .46rem; }
  .resident-summary { display: none; }
  .resident-result { padding: .4rem; }
  .resident-result-heading > p:last-child { display: none; }
  .resident-result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; }
  .resident-result-art { width: 80px; height: 60px; margin-top: .25rem; }
  .resident-result-art img { width: 240px; height: 60px; }
  .resident-result-art.frame-1 img { transform: translateX(-80px); }
  .resident-result-art.frame-2 img { transform: translateX(-160px); }
  .resident-result-copy > p:not(.resident-transition), .resident-result-copy small, .resident-result-copy em { display: none; }
}
