/* The club career (/career). Ported from the retired lab preview (lab/club-career/career.css). */
@font-face {
  font-family: Club Serif;
  src: url('/design/fonts/dm-serif.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: Club Sans;
  src: url('/design/fonts/nunito-sans.woff2') format('woff2');
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f5efdf;
  --card: #fffaf0;
  --ink: #233d35;
  --muted: #606a5a;
  --teal: #216b5c;
  --gold: #dfbb61;
  --line: #cfc6af;
  --red: #a94432;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 Club Sans,
    system-ui,
    sans-serif;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a {
  color: var(--teal);
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a44730;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family:
    Club Serif,
    Georgia,
    serif;
  font-weight: 400;
  line-height: 1.12;
}
h1 {
  font-size: clamp(40px, 4.4vw, 66px);
  letter-spacing: -0.025em;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 18px;
}
button {
  min-height: 44px;
}
.masthead {
  max-width: 1328px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 9px;
}
.brand strong {
  color: var(--teal);
  font-size: 21px;
}
.lab-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #526454;
  font-weight: 800;
}
.wallet {
  padding: 9px 17px;
  border: 1px solid #b59b5e;
  border-radius: 30px;
  color: #674d18;
  background: #f7e9bd;
  font-weight: 800;
  white-space: nowrap;
}
.navigation {
  max-width: 1272px;
  margin: 0 auto;
  border-top: 7px solid transparent;
  border-image: repeating-linear-gradient(
      90deg,
      #ae4a35 0 15px,
      #dfbb61 15px 28px,
      #f7ead1 28px 44px,
      #216b5c 44px 58px,
      #e8dcb9 58px 76px
    )
    1;
  display: flex;
  gap: 28px;
  padding: 12px 0 0;
}
.navigation a {
  text-decoration: none;
  padding: 12px 2px;
  font-size: 15px;
  color: #566252;
  border-bottom: 3px solid transparent;
  font-weight: 700;
}
.navigation a[aria-current] {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
main {
  max-width: 1328px;
  margin: 0 auto;
  padding: 36px 28px 48px;
  min-height: 65vh;
}
main:focus {
  outline: none;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64704f;
}
.lede {
  font-size: 18px;
  color: #526252;
  line-height: 1.65;
  max-width: 710px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr);
  border: 1px solid #beb89f;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
}
.invitation {
  padding: 42px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.invitation h1 {
  max-width: 550px;
}
.event-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.event-facts span {
  border: 1px solid #d8d0bb;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 4px;
  color: #4f604b;
}
.host {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}
.host img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #dce8cf;
  border: 2px solid #cec399;
}
.host p {
  max-width: 330px;
  font-style: italic;
  color: #58624e;
}
.event-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
}
.primary {
  background: var(--teal);
  color: #fff9e8;
  border: 1px solid var(--teal);
  box-shadow: 0 3px 0 #17483f;
}
.primary:hover {
  background: #195649;
}
.primary:active {
  box-shadow: inset 0 2px 3px #133d3533;
}
.secondary {
  background: #fff9ec;
  color: var(--teal);
  border: 1px solid #bbb79f;
}
.secondary:hover {
  background: #e7eadb;
}
.secondary:disabled,
.primary:disabled {
  border-color: #b8c5ad;
  color: #39594d;
  background: #e0e9d7;
  box-shadow: none;
}
.text-button {
  border: 0;
  padding: 8px 4px;
  background: none;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.fine {
  font-size: 12px;
  color: #606651;
  line-height: 1.6;
}
.club-pass {
  padding: 36px;
  color: #fff2d3;
  background: #193f35;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  position: relative;
}
.club-pass::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid #ac945b80;
  border-radius: 8px;
  pointer-events: none;
}
.club-pass .eyebrow {
  color: #e4c582;
}
.club-pass h2 {
  font-size: 38px;
}
.club-pass > p:last-child {
  font-size: 14px;
  color: #e0dfc6;
  max-width: 320px;
}
.progress {
  height: 5px;
  background: #657563;
  border-radius: 8px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: #e2c375;
}
.chapter-meter {
  width: 100%;
  height: 12px;
  accent-color: #e2c375;
}
.invitation h2 {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin: 0 0 20px;
  line-height: 1.08;
}
.story-recap,
.chapter-complete {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #fff9e9;
  border: 1px solid #cfb370;
  border-radius: 18px;
  padding: 24px;
  margin-block: 20px;
}
.story-recap img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
}
.story-recap p,
.chapter-complete p {
  line-height: 1.65;
}
.objective-status {
  font-weight: 650;
  color: #23645b;
}
.story-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.campaign-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 30px;
}
.campaign-tab {
  display: grid;
  text-align: left;
  gap: 8px;
  padding: 18px 20px;
  color: #31554b;
  background: #fcf8ed;
  border: 1px solid #cec4ac;
  border-radius: 12px;
}
.campaign-tab strong {
  font-family: Georgia, serif;
  font-size: 1.3rem;
}
.campaign-tab small,
.campaign-tab span {
  font-size: 0.8rem;
  line-height: 1.4;
}
.campaign-tab[aria-pressed='true'] {
  border: 2px solid #286e63;
  background: #e7eee3;
  padding: 17px 19px;
}
.hand-recap {
  margin: 16px 0;
  padding: 18px 22px;
  border: 1px solid #cec4ac;
  border-radius: 12px;
  background: #fcf8ed;
}
.hand-recap summary {
  cursor: pointer;
  font-weight: 700;
  line-height: 1.5;
}
.hand-recap summary span {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: #526458;
}
.hand-recap ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hand-recap li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #ddd3be;
}
.hand-recap li div {
  flex: 1;
  min-width: 0;
}
.hand-recap li small {
  display: block;
  margin-top: 6px;
  color: #526458;
}
.hand-number {
  color: #536557;
  white-space: nowrap;
  font-size: 0.8rem;
}
.hand-delta {
  white-space: nowrap;
  color: #23645b;
}
.keepsake-letter {
  background: #fff9e9;
  border: 1px solid #cbb375;
  border-radius: 12px;
  padding: 24px;
  line-height: 1.8;
}
.postcard-faces {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}
.postcard-faces img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e4ecdf;
}
.postcard-signature {
  font-family: Georgia, serif;
  font-style: italic;
  color: #26675c;
}
.primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
@media (max-width: 600px) {
  .campaign-tab {
    padding: 12px;
  }
  .campaign-tab[aria-pressed='true'] {
    padding: 11px;
  }
  .campaign-tab strong {
    font-size: 1.1rem;
  }
  .hand-recap {
    padding: 16px;
  }
  .hand-recap li {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hand-number {
    flex-basis: 100%;
  }
  .hand-recap li strong {
    font-size: 0.9rem;
  }
}
@media (max-width: 600px) {
  .story-recap,
  .chapter-complete {
    align-items: flex-start;
    padding: 18px;
    gap: 12px;
  }
  .story-recap img {
    width: 42px;
    height: 42px;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
}
.mini-table {
  --felt: #c8ddcb;
  height: 228px;
  border: 8px solid #c7af70;
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 25%, #ffffff2b, transparent 75%), var(--felt);
  box-shadow:
    0 8px 0 #132f2426,
    inset 0 0 0 2px #6c92715e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 16px 16px;
  overflow: hidden;
}
.mini-table[data-felt='porcelain'] {
  --felt: #d3e4e8;
}
.mini-table[data-felt='rose'] {
  --felt: #ead9d2;
}
.mini-table[data-felt='rattan'] {
  --felt: #e8dfbd;
}
.mini-backs {
  color: #467f63;
  letter-spacing: 3px;
  font-size: 18px;
  line-height: 1;
}
.mini-centre {
  display: flex;
  gap: 2px;
}
.mini-centre span,
.mini-rack > span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #fcf6e7;
  border: 1px solid #bfc6b7;
  border-bottom: 3px solid #b4baa7;
  color: #aa3426;
  border-radius: 3px;
}
.mini-centre span {
  width: 27px;
  height: 35px;
  font:
    21px/1 Georgia,
    serif;
  color: #23563c;
}
.mini-rack {
  display: flex;
  gap: 2px;
}
.mini-rack > span {
  width: 33px;
  height: 46px;
  font:
    24px/1 Georgia,
    serif;
  color: #223f2f;
  box-shadow: 0 2px 2px #324b3220;
}
.mini-rack small {
  font-size: 16px;
  color: #aa3426;
}
.mini-rack img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mini-rack .green {
  color: #167049;
}
.mini-rack .blue {
  color: #276e9b;
}
.journey {
  padding-top: 42px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 20px;
}
.section-heading .eyebrow {
  margin-bottom: 9px;
}
.section-heading > span {
  font-size: 13px;
  color: #58604f;
}
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.chapter {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 20px;
  text-align: left;
  border: 1px solid #b9bfa9;
  border-radius: 10px;
  background: #fff9ec;
  color: #354d3e;
}
.chapter-number {
  grid-row: 1/3;
  font:
    30px/1.2 Club Serif,
    Georgia,
    serif;
  color: #897141;
}
.chapter strong,
.chapter > span:last-child {
  grid-column: 1/-1;
}
.chapter strong {
  font:
    24px/1.15 Club Serif,
    Georgia,
    serif;
}
.chapter > span:last-child {
  font-size: 12px;
}
.chapter-state {
  font-size: 11px;
  line-height: 1.4;
  align-self: center;
}
.chapter.selected {
  background: #e1e8d7;
  border: 2px solid var(--teal);
  padding: 19px;
}
.chapter:disabled {
  background: #eeeadc;
  border-style: dashed;
  color: #656657;
}
.chapter:not(:disabled):hover {
  border-color: var(--teal);
  background: #e9eddf;
}
.next-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 30px;
}
.next-step h2 {
  margin: 8px 0;
}
.next-step p {
  max-width: 650px;
  font-size: 14px;
}
.next-step a {
  white-space: nowrap;
}
.page-heading {
  max-width: 820px;
  margin-bottom: 32px;
}
.page-heading h1 {
  margin: 12px 0 18px;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.shop-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding: 24px;
}
.shop-card .mini-table {
  max-width: 390px;
  margin: 0 auto 25px;
}
.shop-copy h2 {
  margin: 8px 0 12px;
}
.shop-copy p:not(.eyebrow) {
  font-size: 14px;
  color: #586252;
}
.shop-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.collection-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
}
.collection-layout h2 {
  margin-bottom: 22px;
}
.owned-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.owned-grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}
.owned-grid .mini-table {
  height: 180px;
  padding: 15px 8px 10px;
}
.owned-grid .mini-rack > span {
  width: 24px;
  height: 35px;
  font-size: 18px;
}
.owned-grid .mini-rack small {
  font-size: 13px;
}
.owned-grid .mini-backs {
  letter-spacing: 0;
}
.owned-grid h3 {
  margin: 18px 0 12px;
}
.trophy-shelf {
  background: #eee5cc;
  border-radius: 12px;
  padding: 26px;
}
.trophy-shelf .eyebrow {
  margin-bottom: 8px;
}
.trophy {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #ccc1a0;
}
.seal {
  flex: 0 0 58px;
  height: 58px;
  display: grid;
  place-content: center;
  font:
    30px/1 Georgia,
    serif;
  border: 3px double #aa9e72;
  border-radius: 50%;
  color: #7d765b;
  background: #e5dfc8;
}
.earned .seal,
.result-banner .seal {
  background: #ecd58a;
  border-color: #867036;
  color: #685223;
}
.trophy h3 {
  font-size: 16px;
}
.trophy p {
  font-size: 12px;
  color: #606252;
}
.trophy small {
  font-size: 11px;
}
.rival-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.rival {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}
.rival img {
  width: 88px;
  height: 88px;
  border: 3px solid #cdbb7c;
  border-radius: 50%;
  background: #d2dfc6;
  margin-bottom: 14px;
}
.rival h2 {
  font-size: 29px;
}
.rival p {
  margin: 12px 0 20px;
  font-size: 14px;
}
.rival strong,
.rival small {
  display: block;
}
.rival strong {
  font-size: 14px;
}
.rival small {
  font-size: 12px;
  color: #606252;
}
.records-panel {
  margin-top: 36px;
}
.records-panel h2 {
  margin-bottom: 18px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
th,
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
}
.result-banner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px;
  background: #ede0b5;
  border: 1px solid #c4a755;
  border-radius: 12px;
  margin-bottom: 26px;
}
.result-banner h2 {
  font-size: 27px;
  margin: 8px 0;
}
.result-copy {
  min-width: 0;
}
.result-banner p {
  font-size: 13px;
}
.result-banner .reward {
  min-width: 120px;
  margin-left: auto;
  text-align: center;
}
.reward strong {
  display: block;
  font:
    42px/1 Club Serif,
    Georgia,
    serif;
}
.reward span {
  font-size: 11px;
}
#feedback:not(:empty) {
  pointer-events: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  border: 1px solid #b59b5e;
  background: #fff5d9;
  color: #334c3e;
  box-shadow: 0 8px 28px #28382b33;
  border-radius: 10px;
  padding: 16px 22px;
  max-width: min(90vw, 620px);
}
.personal-best {
  border-left: 3px solid #b69a52;
  padding-left: 12px;
  font-size: 13px;
  color: #53634f;
}
.event-standings {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  margin: -12px 0 28px;
}
.event-standings summary {
  padding: 15px 22px;
  cursor: pointer;
  font-weight: 800;
}
.event-standings summary span {
  display: block;
  margin-left: 17px;
  font-size: 11px;
  font-weight: 400;
  color: #606651;
}
.event-standings ol {
  list-style: none;
  margin: 0;
  padding: 0 22px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.event-standings li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d1c8b2;
  border-radius: 5px;
  font-size: 14px;
}
.event-standings .place {
  font:
    26px/1 Club Serif,
    Georgia,
    serif;
  width: 24px;
  color: #947333;
}
.event-standings small {
  display: block;
  font-size: 11px;
  color: #5c6754;
}
.event-standings strong {
  margin-left: auto;
  font-size: 13px;
}
.event-standings .your-finish {
  background: #e6ead5;
  border-color: #86a28b;
}
@media (max-width: 760px) {
  .event-standings ol {
    grid-template-columns: 1fr;
  }
}
.lab-footer {
  max-width: 1272px;
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #616650;
}
.lab-footer strong {
  display: block;
}
.lab-footer button {
  display: block;
  margin-top: 12px;
  font-size: 12px;
}
dialog {
  background: var(--card);
  color: var(--ink);
  border: 1px solid #bca968;
  border-radius: 14px;
  width: min(520px, calc(100% - 28px));
  max-height: 90vh;
  padding: 30px;
  box-shadow: 0 20px 80px #142f3440;
}
dialog::backdrop {
  background: #183b37a6;
}
dialog h2 {
  padding-right: 45px;
  margin: 12px 0 22px;
}
.dialog-close {
  float: right;
  padding: 2px 14px;
  min-height: 44px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 22px;
}
dialog .mini-table {
  margin-bottom: 22px;
}
.skip,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 14px;
  clip: auto;
  background: white;
}
@media (min-width: 1600px) {
  main {
    padding-top: 48px;
  }
  .hero-grid {
    grid-template-columns: 1.35fr 1fr;
  }
  .invitation {
    padding: 52px;
  }
}
@media (max-width: 1100px) {
  .navigation,
  .lab-footer {
    margin-inline: 28px;
  }
  .lab-label {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .invitation {
    padding: 30px;
  }
  .club-pass {
    padding: 28px;
  }
  .chapter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .collection-layout {
    grid-template-columns: 1fr;
  }
  .owned-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .masthead {
    padding: 18px 18px;
  }
  .brand {
    font-size: 12px;
    gap: 8px;
  }
  .brand strong {
    font-size: 16px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .wallet {
    font-size: 12px;
    padding: 7px 11px;
  }
  .navigation {
    margin-inline: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
  .navigation a {
    font-size: 13px;
    white-space: normal;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  main {
    padding: 24px 18px 34px;
  }
  .invitation {
    padding: 28px 24px;
    gap: 16px;
  }
  .invitation h1 {
    font-size: 44px;
  }
  .lede {
    font-size: 16px;
  }
  .club-pass {
    padding: 28px;
  }
  .club-pass .mini-table {
    width: 100%;
    max-width: 390px;
    margin: auto;
    height: 210px;
  }
  .club-pass h2 {
    font-size: 31px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .chapter {
    padding: 15px;
    gap: 9px;
  }
  .chapter.selected {
    padding: 14px;
  }
  .chapter strong {
    font-size: 22px;
  }
  .next-step {
    flex-direction: column;
    align-items: start;
    gap: 20px;
  }
  .next-step h2 {
    font-size: 28px;
  }
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .shop-card {
    padding: 22px;
  }
  .page-heading h1 {
    font-size: 42px;
  }
  .rival-grid {
    grid-template-columns: 1fr;
  }
  .rival {
    text-align: left;
    min-height: 150px;
    padding: 22px;
  }
  .rival img {
    float: left;
    margin: 0 20px 15px 0;
    width: 74px;
    height: 74px;
  }
  .rival p {
    margin: 8px 0 16px;
  }
  .rival strong,
  .rival small {
    clear: both;
  }
  .owned-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .owned-grid .mini-table {
    height: 150px;
  }
  .owned-grid .mini-rack > span {
    width: 17px;
    height: 27px;
    font-size: 14px;
  }
  .owned-grid .mini-rack small {
    font-size: 10px;
  }
  .owned-grid .mini-backs {
    font-size: 13px;
  }
  .result-banner {
    flex-wrap: wrap;
    padding: 20px;
    gap: 14px;
  }
  .result-banner .seal {
    display: none;
  }
  .result-banner h2 {
    font-size: 25px;
  }
  .result-banner .reward {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0;
  }
  .reward strong {
    font-size: 32px;
  }
  .lab-footer {
    margin-inline: 18px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .primary,
  .secondary,
  .chapter {
    transition:
      background-color 0.15s,
      border-color 0.15s;
  }
}

/* Production career additions: portraits keep their bust composition inside every circle (the
   character art is 640×720), and a visit shows who is seated and the style each one plays. */
.host img,
.story-recap img,
.postcard-faces img,
.rival img,
.table-roster img,
.chapter-companion > summary img,
.encounter-offer img,
.return-regular img {
  object-fit: cover;
  object-position: 50% 12%;
}
.host p small {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.table-roster {
  margin: 4px 0 14px;
}
.table-roster ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.table-roster li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}
.table-roster img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #cec399;
  background: #dce8cf;
}
.table-roster span {
  min-width: 0;
}
.table-roster strong,
.table-roster small {
  display: block;
}
.table-roster strong {
  font-size: 15px;
  line-height: 1.3;
}
.table-roster small {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.table-roster .tagline {
  font-style: italic;
}
.rival-style {
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 4px 0 8px !important;
}
dialog .table-roster ul {
  grid-template-columns: 1fr;
}
@media (max-width: 700px) {
  .table-roster ul {
    grid-template-columns: 1fr;
  }
  .table-roster .tagline {
    display: none;
  }
}
.rival-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
/* Between 1100px and the 1328px design width the navigation, the note under it and the footer
   otherwise touch the window edge; keep the same 28px gutter as the masthead and main. */
.navigation,
.lab-footer,
body > .lab-label {
  max-width: min(1272px, calc(100% - 56px));
}
body > .lab-label {
  margin: 10px auto 0;
}
.lab-footer a {
  margin-left: 6px;
}
/* Guest visits: the guests' faces take the place of the visit number. */
.guest-visits .section-heading span {
  max-width: 520px;
}
.chapter.guest {
  grid-template-columns: 48px 1fr;
  border-style: solid;
  border-color: #cdbb7c;
  background: #fffaf0;
}
.guest-faces {
  grid-row: 1/3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.guest-faces img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #cdbb7c;
  background: #efe3c2;
  object-fit: cover;
  object-position: 50% 12%;
}
/* On a phone the invitation and passport share one column that may shrink below the passport's
   table preview (a plain 1fr cannot), and the preview's seven tiles shrink to fit a 320px screen. */
@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 400px) {
  .mini-table {
    padding-inline: 10px;
  }
  .mini-rack > span {
    width: 25px;
    height: 35px;
  }
}
/* One tab per chapter on a row while they fit (three chapters on desktop), wrapping on phones. */
.campaign-navigation {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
/* The career payoff (FUN-PLAN 2.5): a result this device has not shown yet opens the page, and
   the visit's stamps press into a passport row, one chop every 250 ms after a 300 ms settle
   (CHOP_START_MS, CHOP_GAP_MS and CHOP_PRESS_MS in career/payoff.js). Each chop reads its delay
   from its own --chop; reduced motion shows every chop pressed, with nothing moving. */
.visit-payoff {
  margin-bottom: 34px;
}
.visit-payoff .result-banner {
  margin-bottom: 0;
}
.visit-payoff #result-title:focus {
  outline: none;
}
.stamp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed #b89a4f;
  border-radius: 10px;
  background: #f6ebc6;
}
.chop {
  display: grid;
  justify-items: center;
  gap: 5px;
}
.chop-slot {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px dashed #c9b27a;
  border-radius: 7px;
}
.chop-mark {
  --tilt: -4deg;
  display: grid;
  place-content: center;
  border: 2px solid #a94432;
  border-radius: 7px;
  background: #fbf1dc;
  color: #a94432;
  font:
    22px/1 Georgia,
    serif;
  transform: rotate(var(--tilt));
}
.chop:nth-child(even) .chop-mark {
  --tilt: 3deg;
}
.chop-first .chop-slot,
.chop-chapter .chop-slot {
  width: 54px;
  height: 54px;
}
.chop-first .chop-mark,
.chop-chapter .chop-mark {
  background: #a94432;
  color: #fff5e6;
  font-size: 30px;
}
.chop-medal .chop-slot,
.chop-medal .chop-mark {
  border-radius: 50%;
}
.chop-medal .chop-mark {
  border-color: #867036;
  background: #ecd58a;
  color: #685223;
}
.stamp-row small {
  color: #6b5a2c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
@keyframes chop-press {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(1.6) rotate(var(--tilt));
  }
  70% {
    opacity: 1;
    transform: scale(0.93) rotate(var(--tilt));
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(var(--tilt));
  }
}
@keyframes chop-label {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes wallet-stamp {
  40% {
    transform: scale(1.07);
    background: #f1d98f;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .visit-payoff[data-pressing] .chop-mark {
    animation: chop-press 320ms cubic-bezier(0.3, 0.7, 0.4, 1) both;
    animation-delay: calc(300ms + var(--chop) * 250ms);
  }
  .visit-payoff[data-pressing] .stamp-row small {
    animation: chop-label 320ms ease-out both;
    animation-delay: calc(300ms + var(--chop) * 250ms);
  }
  .wallet[data-stamped] {
    animation: wallet-stamp 360ms ease-out;
  }
}
@media (max-width: 600px) {
  .visit-payoff .result-banner {
    align-items: flex-start;
  }
  .stamp-row {
    gap: 8px 10px;
    padding: 10px;
  }
}
.visit-payoff .event-standings {
  margin: 0 0 16px;
}
