/* Picks redesign. Artwork is the production kit; type stays the site's fonts. */

.main:has(.px) {
  max-width: min(1280px, 100%);
}

.px {
  color: var(--text-1);
  max-width: 100%;
}

.px-weeker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.px-weeker .px-field {
  width: auto;
}

.px-weeker .px-select {
  width: auto;
  min-width: 190px;
  text-align: center;
  font-family: Oswald, var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.px-arrow {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #8a6230;
  border-radius: 8px;
  background: #241910;
  color: #f0c766;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.px-arrow.is-off {
  opacity: 0.35;
}

.px-bar {
  height: 8px;
  margin: 10px 0;
  overflow: hidden;
  border: 1px solid #8a6230;
  border-radius: 99px;
  background: #2a2118;
}

.px-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c9842a, #f0c766);
}

.px-pool {
  margin-top: 28px;
}

.px-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: #e7d5b2;
  font-size: 12px;
}

.px-panel,
.px-rows,
.px-paper {
  min-width: 0;
  max-width: 100%;
}

.px-panel {
  background: rgba(5, 21, 29, 0.94);
  border: 1px solid #816039;
  border-radius: 8px;
  box-shadow: inset 0 0 0 3px rgba(25, 14, 11, 0.55), 0 8px 18px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  margin-bottom: 20px;
}

.px-plank {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 18px 12px clamp(84px, 13%, 210px);
  background-color: #3a2414;
  background-image: url("/picks/header-plank-blank.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 100% 100%;
  color: #ffe2ab;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.px-hi {
  margin: 0 0 8px;
  color: #3b2215;
  font-size: 15px;
}

.px-body {
  padding: 16px 18px 18px;
  color: #f4efe4;
  font-size: 16px;
}

.px-paper {
  margin-bottom: 16px;
  padding: 20px 22px 18px;
  color: #3b2215;
  background: linear-gradient(180deg, #f6e4b8, #e4c48a);
  border: 4px solid #4e2c17;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.px-paper h3,
.px-paper .px-pickname,
.px-paper .px-saved,
.px-paper .px-note {
  color: #3b2215;
}

.px-paper .px-btn {
  color: #321b0e;
}

.px-paper-top,
.px-pickline,
.px-actions,
.px-tools,
.px-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.px-paper-top {
  justify-content: space-between;
  margin-bottom: 12px;
}

.px-pickline {
  flex-wrap: nowrap;
  align-items: flex-start;
}

.px-pickline > div {
  min-width: 0;
}

.px-paper h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.px-pickname {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
}

.px-saved,
.px-note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.px-note {
  color: #e7d3b0;
}

.px-photo {
  width: 72px;
  height: 80px;
  object-fit: cover;
  flex: none;
  border: 3px solid #be8c41;
  background: #1b2e28;
}

.px-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.px-tribe {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.px-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #a28a5b;
  border-radius: 999px;
  padding: 3px 9px;
  background: #372d1d;
  color: #eddab6;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.px-badge.is-saved,
.px-badge.is-open {
  background: #165b40;
  color: #e7ffe8;
  border-color: #5aa983;
}

.px-badge.is-locked,
.px-badge.is-not-open {
  background: #3a2b18;
  color: #ffe3b0;
}

.px-badge.is-processed {
  background: #17554b;
  color: #d8fff2;
}

.px-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 48px;
  padding: 10px 26px;
  border: 0 solid transparent;
  border-image: url("/picks/btn-gold-default.png") 48 40 fill / 24px 20px / 0 repeat;
  color: #321b0e;
  background: none;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.px-btn:hover,
.px-pill:hover,
.px-tab:hover,
.px-cast:hover {
  filter: brightness(1.08);
}

.px-btn:focus-visible,
.px-pill:focus-visible,
.px-tab:focus-visible,
.px-cast:focus-visible,
.px-select:focus-visible {
  outline: 3px solid #fae29b;
  outline-offset: 2px;
}

.px-tabs {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(211, 155, 74, 0.38);
}

.px-tab,
.px-pill {
  border: 1px solid #805932;
  border-radius: 999px;
  padding: 8px 14px;
  background: #211b16;
  color: #edd8b7;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.px-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 44px;
  border-radius: 6px 6px 0 0;
  background: #1b261f;
}

.px-pill {
  min-height: 44px;
}

.px-tab.is-on,
.px-pill.is-on {
  background: #e7b960;
  color: #2b190d;
  border-color: #f5d49b;
}

.px-chooser {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.px-chooser-side {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #f6e4b8, #e4c48a);
  color: #3b2215;
}

.px-chooser-side p {
  margin: 0;
  flex: 1;
}

.px-chooser-actions {
  display: flex;
  gap: 10px;
  flex: none;
}

.px-btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #8a6230;
  border-radius: 4px;
  background: transparent;
  color: #3b2215;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.px-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.px-btn-quiet[hidden] {
  display: none;
}

.px-cast[hidden] {
  display: none;
}

.px-season-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #865f37;
  border-radius: 6px;
}

.px-season {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font-size: 13px;
}

.px-season th,
.px-season td {
  padding: 10px 12px;
  border-bottom: 1px solid #5e442a;
  border-right: 1px solid #382c21;
  text-align: left;
  white-space: nowrap;
}

.px-season thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #382819;
  color: #f5d5a2;
}

.px-season th:first-child,
.px-season td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #251b13;
  color: #ffe5b7;
}

.px-season .is-current {
  background: #5a4720;
}

.px-season .is-star {
  color: #f3c65a;
}

.px-season .is-knockout {
  color: #ff8a76;
}

.px-stars {
  margin-left: 6px;
  color: #e7ba63;
}

.px-tools {
  margin-bottom: 12px;
}

.px-search {
  flex: 1 1 180px;
}

.px-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #e7d3b0;
  font-size: 12px;
}

.px-select {
  min-height: 42px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #a37335;
  border-radius: 5px;
  background: #12100e;
  color: #fff0d1;
}

.px-rows {
  border: 1px solid #785936;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(2, 14, 21, 0.72);
}

.px-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(88px, 0.8fr);
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid #56462f;
  background: rgba(2, 14, 21, 0.66);
  font-size: 16px;
}

.px-row:first-child {
  border-top: 0;
}

.px-head {
  background: #281b11;
  color: #e4c38e;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.px-row.is-out {
  opacity: 0.55;
}

.px-row[data-me] {
  background: #3a2e18;
}

.px-status.is-good {
  color: #86dfae;
}

.px-status.is-bad {
  color: #ff8a76;
}

.px-status.is-star,
.px-status.is-locked {
  color: #f3c65a;
}

.px-compare {
  display: none;
  color: #f3c65a;
}

.px[data-comparing] .px-compare {
  display: block;
}

.px[data-comparing] .px-row {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(72px, 0.7fr);
}

.px-cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.px-cast {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 148px;
  padding: 10px 8px;
  border: 1px solid #ad7534;
  border-radius: 6px;
  background: linear-gradient(#2d2219, #0c1b21);
  color: var(--cream, #fff0c5);
  text-align: center;
  cursor: pointer;
}

.px-cast input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.px-cast:has(input:checked) {
  border: 2px solid #f9c563;
  box-shadow: 0 0 0 1px #f9c563;
}

.px-cast-name {
  font-weight: 700;
  line-height: 1.15;
}

.px-cast .px-photo {
  width: 56px;
  height: 64px;
}

.px-cast .stat-badges,
.px-cast .available-to {
  font-size: 11px;
}

.px-actions {
  margin-top: 14px;
}

.px-step {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.px-step span {
  flex: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: #291b10;
  font-family: var(--font-display);
}

.px-step p {
  margin: 0;
}

.px .page-title {
  color: #ffe2ab;
}

@media (max-width: 768px) {

  .px-cast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .px-chooser-side {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 390px) {

  .px-plank {
    padding-left: 84px;
    font-size: 15px;
  }

  .px-btn-quiet {
    width: 100%;
  }

  .px-body {
    padding: 12px;
  }

  .px-paper {
    padding: 16px;
  }

  .px-cast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .px-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(64px, 0.8fr);
    gap: 6px;
    padding: 9px 8px;
    font-size: 13px;
  }

  .px-btn {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .px-btn,
  .px-pill,
  .px-tab,
  .px-cast {
    transition: none;
  }
}

/* ---------- Picks open: banner, countdown plaque, your pick, castaway strip ---------- */

.px-framed {
  max-width: 1180px;
  margin: 12px auto 0;
  color: #efe2c2;
}

.px-framed > .flash {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 8px 0;
  padding: 12px 18px;
  border: 2px solid #8a6230;
  border-radius: 6px;
  background: linear-gradient(#2e1f12, #1c120a);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.45);
  color: #efe2c2;
  font-size: 16px;
  font-weight: 600;
}

.px-framed > .flash::before {
  flex: none;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.px-framed > .flash-ok {
  border-color: #4f9a6c;
  color: #dcf3e2;
}

.px-framed > .flash-ok::before {
  content: "✓";
  color: #7fd39e;
}

.px-framed > .flash-error {
  border-color: #b4532f;
  color: #ffdccc;
}

.px-framed > .flash-error::before {
  content: "!";
  color: #ff9a72;
}

.px-top.is-solo {
  grid-template-columns: minmax(0, 1fr);
}

.px-notice a {
  color: #7a3510;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* The board and plaque keep their artwork ratios (1400:392 and 580:400); the
   column fractions use the same ratios so both share one height. */
.px-top {
  display: grid;
  grid-template-columns: minmax(0, 3.5714fr) minmax(0, 1.45fr);
  gap: 20px;
  align-items: start;
}

.px-notice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1400 / 392;
  min-height: 0;
  padding: 3% 7%;
  border: 0;
  background: url("/camp/notice-board.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.6));
  color: #2a1a0c;
  text-align: center;
}

.px-notice h1 {
  margin: 0;
  color: #2a1a0c;
  font-family: var(--marker, "Permanent Marker", sans-serif);
  font-size: clamp(32px, 3.7vw, 54px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.px-notice p {
  margin: 10px 0 0;
  color: #3b2414;
  font-family: var(--sans, "Source Sans 3", sans-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.px-notice.is-long h1 {
  font-size: clamp(28px, 2.9vw, 42px);
}

.px-notice .px-notice-note {
  margin-top: 4px;
  color: #5c3b1f;
  font-size: 14px;
  font-weight: 500;
}

.px-clock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  aspect-ratio: 580 / 400;
  padding: 13.5% 15% 13%;
  border: 0;
  background: url("/camp/hist-dark-box.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6));
  color: #efe2c2;
  text-align: center;
}

.px-clock-time {
  margin: 0;
  color: #fff3d6;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.px-clock-sub {
  margin: 8px 0 0;
  color: #f0c766;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.px-clock .px-bar {
  margin: 14px 8px 6px;
}

.px-clock-meta {
  margin: 2px 0 0;
  color: #e9dcc0;
  font-size: 13px;
  line-height: 1.35;
}

/* Board art is 1400:422. Content stays above the ferns (about 58% down the
   board) and inside the corner fern clumps (about 19% in from each side). */
.px-mine {
  margin-top: 20px;
  aspect-ratio: 1400 / 422;
  padding: 3.7% 7% 0;
  border: 0;
  background: url("/camp/hero-board-greenery.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.6));
  color: #2a1a0c;
}

.px-mine-title {
  margin: 0;
  color: #3b2414;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.px-mine .px-hi {
  margin: 4px 0 14px;
  color: #3b2414;
  font-size: 16px;
}

.px-mine-pick {
  display: flex;
  align-items: center;
  gap: 22px;
}

.px-mine-info {
  min-width: 0;
}

.px-mine-name {
  margin: 0;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.px-mine-name > span {
  color: #2a1a0c !important;
  font-weight: 700 !important;
}

.px-mine-pick:has(.is-empty) .px-mine-name {
  font-size: 28px;
}

.px-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.px-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 12px;
  border-radius: 4px;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.25);
}

.px-chip.is-saved {
  background: #1f6b4a;
  color: #effbe8;
}

.px-chip.is-unsaved {
  background: #5a2a17;
  color: #ffe2c9;
}

.px-chip.is-locked {
  background: #3a2a1c;
  color: #f0c766;
}

.px-chip.is-star {
  background: #e5b13c;
  color: #2a1a0c;
}

.px-chip.is-out {
  background: #8a2f1c;
  color: #ffe6d8;
}

.px-chip.is-used {
  min-height: 24px;
  padding: 1px 8px;
  background: #3a2a1c;
  color: #e7d3b0;
  font-size: 12px;
}

.px-mine-meta {
  margin: 10px 0 0;
  color: #4a2e18;
  font-size: 15px;
  line-height: 1.4;
}

.px-mine .px-actions {
  margin: 14px 0 0;
}

.px-tile {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 112px;
  aspect-ratio: 1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tribe, #476) 38%, #1c140c), #0e0a06 75%);
}

.px-tile .tribe-icon {
  position: relative;
  z-index: 1;
}

.px-framed .px-btn {
  font-family: var(--osw, Oswald, sans-serif);
  font-weight: 700;
  color: #2a1508;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 0 rgba(255, 232, 170, 0.55);
}

.px-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/camp/cast-tile-frame.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

.px-tile::before {
  content: "";
  position: absolute;
  inset: 15.2%;
  z-index: 2;
  border: 2px solid var(--tribe, #d9b13a);
  pointer-events: none;
}

.px-tile img {
  position: absolute;
  inset: 18%;
  width: 64%;
  height: 64%;
  object-fit: cover;
  object-position: center top;
}

.px-tile-lg {
  width: 132px;
}

.px-tile.is-empty {
  background: #2a1d12;
  color: #f0c766;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 44px;
  font-weight: 700;
}

/* panel-frame.png is 1640x368. The slices cut through the middle of the rail
   lashings (x 532 and 1110) and between the post carvings (y 86 and 266), so
   the rails and posts repeat at a 0.36 scale instead of stretching. */
.px-choose,
.px-frame,
.px-pool-body {
  border: solid transparent;
  border-width: 19px 25px 20px;
  border-image: url("/camp/panel-frame.png") 86 530 102 532 fill / 31px 191px 37px 192px / 0 round;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
}

.px-choose {
  margin-top: 20px;
  padding: 14px 14px 16px;
}

.px-choose-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.px-choose-head h2 {
  margin: 0;
  color: #f0c766;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.px-choose-head h2 span {
  color: #efe2c2;
}

.px-frame {
  margin-top: 20px;
  padding: 16px 18px 18px;
  color: #efe2c2;
}

.px-frame-title {
  margin: 0 0 10px;
  color: #f0c766;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.px-frame .page-title {
  color: #f0c766;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.px-frame .px-step {
  align-items: baseline;
  margin: 12px 0;
  font-size: 16px;
  line-height: 1.45;
}

.px-frame .px-step span {
  background: #f0c766;
  font-family: var(--osw, Oswald, sans-serif);
  font-weight: 700;
}

.px-clock-time.is-word {
  font-size: 34px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.px-pool-body .px-legend {
  justify-content: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(138, 98, 48, 0.3);
}

.px-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #f0c766;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.px-choose .px-tools {
  gap: 10px;
  margin-bottom: 14px;
}

.px-choose .px-pill,
.px-who-btn {
  height: 44px;
  min-height: 44px;
  padding: 0 30px;
  border: 0 solid transparent;
  border-radius: 0;
  border-image: url("/camp/hist-season-btn.png") 68 82 69 fill / 22px 26px / 0 repeat;
  background: none;
  color: #f3e7cb;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.px-choose .px-pill.is-on,
.px-who-btn.is-on {
  border-image: url("/camp/hist-season-lit.png") 81 86 82 fill / 22px 23px / 0 repeat;
  color: #2a1a0c;
  text-shadow: none;
}

.px-search {
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  height: 46px;
  padding: 0 30px 0 64px;
  border: 0 solid transparent;
  border-image: url("/camp/hist-search.png") 49 57 49 120 fill / 23px 27px 23px 56px / 0 repeat;
}

.px-search input {
  width: 100%;
  min-height: 26px;
  border: 0;
  outline: none;
  background: none;
  color: #efe2c2;
  font-family: var(--sans, "Source Sans 3", sans-serif);
  font-size: 16px;
}

.px-search input::placeholder {
  color: #b9ad96;
}

.px-search:focus-within {
  outline: 3px solid #fae29b;
  outline-offset: 2px;
}

.px-strip {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.px-strip-btn {
  width: 44px;
  height: 64px;
  border: 0 solid transparent;
  border-image: url("/camp/plank-survivors-remain-bg.png") 56 18 fill / 32px 10px / 0 repeat;
  background: none;
  color: #f0c766;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.px-choose .px-cast-grid {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 6px 4px 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-color: #8a6230 transparent;
  scrollbar-width: thin;
}

.px-choose .px-cast {
  flex: 0 0 156px;
  gap: 8px;
  min-height: 0;
  padding: 10px 8px 12px;
  border: 1px solid rgba(173, 117, 52, 0.45);
  border-radius: 6px;
  background: rgba(20, 13, 8, 0.72);
  scroll-snap-align: start;
}

.px-choose .px-cast:hover {
  border-color: #d59a4a;
  filter: none;
}

.px-choose .px-cast:has(input:focus-visible) {
  outline: 3px solid #fae29b;
  outline-offset: 2px;
}

.px-choose .px-cast:has(input:checked) {
  border: 1px solid #f9c563;
  background: rgba(80, 56, 18, 0.85);
  box-shadow: 0 0 0 2px #f9c563, 0 0 18px rgba(249, 197, 99, 0.45);
}

.px-choose .px-cast:has(input:checked)::before {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f9c563;
  color: #2a1a0c;
  font-weight: 800;
}

.px-choose .px-cast-name {
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 18px;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.px-choose .px-cast-name > span {
  color: #f6ead0 !important;
}

.px-choose .px-cast:has(input:checked) .px-cast-name {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border: 0 solid transparent;
  border-image: url("/camp/hist-name-gold.png") 60 38 fill / 16px 10px / 0 repeat;
}

.px-choose .px-cast:has(input:checked) .px-cast-name > span {
  color: #2a1a0c !important;
}

.px-choose .px-cast .px-chip {
  min-height: 24px;
  padding: 1px 10px;
  font-size: 12px;
}

.px-choose .stat-badges {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
}

.px-choose .stat-badge {
  justify-content: center;
  font-size: 11px;
}

.px-choose .px-cast.is-used {
  cursor: not-allowed;
  opacity: 0.6;
  filter: grayscale(0.75);
}

/* hist-plank.png is 580x104; a 72px bar keeps it at 0.69 scale. */
.px-choose .px-chooser-side {
  height: 72px;
  margin-top: 14px;
  padding: 0 34px;
  border: 0 solid transparent;
  border-radius: 0;
  border-image: url("/camp/hist-plank.png") 52 32 fill / 36px 22px / 0 repeat;
  background: none;
  color: #f3e7cb;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.px-choose .px-btn-quiet {
  border-color: #b08348;
  background: rgba(20, 12, 6, 0.45);
  color: #f3e7cb;
}

/* ---------- Pool picks (tabs, week bar, rows) ---------- */

.px-pool {
  margin-top: 24px;
  scroll-margin-top: 16px;
}

.px-view-pick {
  display: none;
}

.px-pool .px-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 -6px;
  padding: 0 10px;
  border: 0;
}

.px-pool .px-tab {
  min-width: 0;
  height: 54px;
  min-height: 54px;
  padding: 0 38px;
  border: 0 solid transparent;
  border-radius: 0;
  border-image: url("/camp/hist-season-btn.png") 68 82 69 fill / 27px 32px / 0 repeat;
  background: none;
  color: #f3e7cb;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.85);
}

.px-pool .px-tab.is-on {
  border-image: url("/camp/hist-season-lit.png") 81 86 82 fill / 27px 28px / 0 repeat;
  color: #2a1a0c;
  text-shadow: 0 1px 0 rgba(255, 235, 180, 0.5);
}

.px-pool-body {
  padding: 12px 12px 14px;
}

.px-weekbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.px-weekbar .px-weeker {
  gap: 6px;
  margin: 0;
}

.px-framed .px-weekbar .px-field {
  order: -1;
  margin-right: 6px;
}

.px-poolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 12px 0 14px;
}

.px-poolbar .px-pool-search {
  flex: 0 1 460px;
  margin: 0;
}

.px-weekbar .px-select {
  width: 340px;
  min-width: 0;
  height: 54px;
  min-height: 54px;
  padding: 0 72px 0 36px;
  border: 0;
  background: url("/picks/kit/week-select.png") center / 100% 100% no-repeat;
  color: #f6e7c4;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  appearance: none;
  cursor: pointer;
}

.px-weekbar .px-select option {
  background: #1d140c;
  color: #efe2c2;
  font-size: 16px;
}

.px-weekbar .px-arrow {
  width: 34px;
  height: 28px;
  border: 0;
  border-radius: 0;
  border-image: none;
  background: url("/picks/kit/chevron.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
}

.px-weeker > .px-arrow:first-child {
  transform: rotate(90deg);
}

.px-weeker > .px-arrow:last-child {
  transform: rotate(-90deg);
}

.px-weekmeta {
  color: #b9ad96;
  font-size: 14px;
}

.px-who {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.px-pool-search {
  margin: 12px 0;
}

.px-pool .page-sub {
  margin: 0 0 10px;
  color: #cdbd98;
  font-size: 14px;
  font-style: italic;
}

.px-pool .px-rows {
  border: 1px solid rgba(138, 98, 48, 0.55);
  border-radius: 4px;
  background: rgba(8, 10, 9, 0.55);
}

.px-pool .px-row {
  min-height: 48px;
  padding: 8px 18px;
  border-top: 1px solid rgba(138, 98, 48, 0.3);
  background: transparent;
  color: #efe2c2;
  font-size: 16px;
}

.px-pool .px-head {
  min-height: 38px;
  border-top: 0;
  border-bottom: 1px solid rgba(240, 199, 102, 0.35);
  background: rgba(0, 0, 0, 0.3);
  color: #d9b65e;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.px-pool .px-row[data-me] {
  background: rgba(240, 199, 102, 0.14);
  box-shadow: inset 4px 0 0 #f0c766;
}

.px-pool .px-row b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.px-pool .px-row > span:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.px-framed .px-btn:disabled {
  opacity: 0.72;
  filter: saturate(0.6);
}

.px-muted {
  color: #b9ad96;
  font-style: italic;
}

.px-status.is-wait {
  color: #b9ad96;
}

.px-status.is-out {
  color: #ff8a76;
}

.px-showing {
  margin: 10px 0 0;
  color: #d9caa6;
  font-size: 14px;
  text-align: center;
}

.px-showing .px-link {
  font-size: 14px;
}

.px-showing .px-link[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .px-mine-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 24px;
  }

  .px-mine .px-hi {
    margin: 0;
    color: #5c3b1f;
    font-size: 15px;
    font-style: italic;
  }

  .px-mine-pick {
    gap: 24px;
    margin-top: 14px;
  }

  .px-mine .px-tile-lg {
    width: 140px;
  }

  .px-mine-name {
    font-size: 46px;
  }

  .px-mine-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 18px;
    margin-top: 6px;
  }

  .px-mine-foot .px-mine-meta {
    margin: 0;
  }

  .px-mine .px-actions {
    margin: 0;
  }

  .px-mine .px-mine-change {
    min-width: 0;
    min-height: 44px;
    padding: 0;
    border-image: none;
    color: #7a3510;
    font-family: var(--osw, Oswald, sans-serif);
    font-size: 15px;
    letter-spacing: 0.06em;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-shadow: none;
  }
}

/* Below the full 1180px column the board art shrinks with the page, so the
   type on it shrinks by the same ratio. --n is one "desktop px" on the notice,
   --p on the plaque, --b on the pick board. */
@media (min-width: 768px) and (max-width: 1179px) {
  .px-framed {
    container-type: inline-size;
  }

  .px-top,
  .px-mine {
    --n: calc((100cqw - 20px) / 1160);
    --p: var(--n);
    --b: calc(100cqw / 1180);
  }

  .px-notice h1 {
    font-size: max(24px, calc(54 * var(--n)));
  }

  .px-notice.is-long h1 {
    font-size: max(22px, calc(42 * var(--n)));
  }

  .px-notice p {
    margin-top: calc(10 * var(--n));
    font-size: max(13px, calc(18 * var(--n)));
  }

  .px-notice .px-notice-note {
    margin-top: calc(4 * var(--n));
    font-size: max(11px, calc(14 * var(--n)));
  }

  .px-clock-time {
    font-size: calc(44 * var(--p));
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .px-clock-time.is-word {
    font-size: calc(34 * var(--p));
  }

  .px-clock-sub {
    margin-top: calc(8 * var(--p));
    font-size: max(10px, calc(14 * var(--p)));
  }

  .px-clock .px-bar {
    margin: calc(14 * var(--p)) calc(8 * var(--p)) calc(6 * var(--p));
  }

  .px-clock-meta {
    font-size: max(10px, calc(13 * var(--p)));
  }

  .px-mine-title {
    font-size: max(14px, calc(22 * var(--b)));
  }

  .px-mine .px-hi {
    font-size: max(12px, calc(15 * var(--b)));
  }

  .px-mine-pick {
    gap: calc(24 * var(--b));
    margin-top: calc(14 * var(--b));
  }

  .px-mine .px-tile-lg {
    width: calc(140 * var(--b));
  }

  .px-mine-name {
    font-size: calc(46 * var(--b));
  }

  .px-mine-pick:has(.is-empty) .px-mine-name {
    font-size: calc(30 * var(--b));
  }

  .px-mine .px-chips {
    gap: calc(8 * var(--b));
    margin-top: calc(10 * var(--b));
  }

  .px-mine .px-chip {
    min-height: calc(28 * var(--b));
    padding: 1px calc(12 * var(--b));
    font-size: max(11px, calc(14 * var(--b)));
  }

  .px-mine-foot {
    margin-top: calc(6 * var(--b));
  }

  .px-mine-meta {
    font-size: max(12px, calc(15 * var(--b)));
  }

  /* Keeps a 44px tap area without pushing the line down into the ferns. */
  .px-mine .px-mine-change {
    position: relative;
    min-height: 0;
    font-size: max(12px, calc(15 * var(--b)));
  }

  .px-mine .px-mine-change::after {
    content: "";
    position: absolute;
    inset: -14px -8px;
  }
}

@media (min-width: 768px) and (max-width: 959px) {
  .px-top {
    --n: min(1px, calc(100cqw / 825));
    --p: 1px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 16px;
  }

  .px-notice {
    width: 100%;
  }

  .px-clock {
    width: 335px;
    padding: 45px 50px 44px;
  }
}

@media (max-width: 767px) {
  .px-framed {
    margin-top: 4px;
  }

  .px {
    container-type: inline-size;
  }

  /* hist-parchment.png is 580x400. Its width scales uniformly with the box,
     and only the post section between the rope coils (y 72 to 302) repeats. */
  .px-top,
  .px-mine {
    --u: calc(100cqw / 580);
    border-style: solid;
    border-color: transparent;
    border-width: calc(72 * var(--u)) calc(60 * var(--u)) calc(98 * var(--u));
    border-image: url("/camp/hist-parchment.png") 72 60 98 / 1 / 0 stretch round;
    background: url("/camp/hist-parchment.png") 0 0 / 100% 100% no-repeat border-box padding-box;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.6));
  }

  .px-top {
    display: block;
    padding: 4px 4px 4px;
  }

  .px-notice {
    aspect-ratio: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    filter: none;
    text-align: center;
  }

  .px-notice h1 {
    font-size: clamp(24px, 8cqw, 32px);
  }

  .px-notice.is-long h1 {
    font-size: clamp(22px, 7cqw, 28px);
  }

  .px-frame {
    padding: 4px 4px 8px;
  }

  .px-frame .roster-group > .roster-grid,
  .px-frame .roster-groups.is-flat .roster-grid[data-roster-flat] {
    grid-template-columns: 1fr;
  }

  .px-notice p {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.35;
  }

  .px-notice .px-notice-note {
    font-size: 13px;
  }

  .px-clock {
    aspect-ratio: auto;
    margin: 12px auto 0;
    max-width: 300px;
    padding: 4px 8px 6px;
    border: solid transparent;
    border-width: 10px 12px;
    border-image: url("/camp/hist-name-dark.png") 24 fill / 12px / 0 stretch;
    background: none;
    filter: none;
  }

  .px-clock-time {
    font-size: clamp(26px, 9cqw, 34px);
  }

  .px-clock-sub {
    margin-top: 4px;
    font-size: clamp(11px, 3.4cqw, 12px);
    letter-spacing: 0.04em;
  }

  .px-clock .px-bar {
    margin: 8px 4px 4px;
  }

  .px-clock-meta {
    font-size: 12px;
  }

  .px-mine {
    aspect-ratio: auto;
    margin-top: 16px;
    padding: 10px 4px 2px;
  }

  .px-mine-title {
    font-size: 19px;
  }

  .px-mine .px-hi {
    margin: 2px 0 12px;
    font-size: 14px;
  }

  .px-mine-pick {
    display: grid;
    grid-template-columns: clamp(76px, 26cqw, 96px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 14px;
    align-items: start;
    align-content: start;
  }

  .px-mine-info,
  .px-mine-foot {
    display: contents;
  }

  .px-mine-pick > .px-tile {
    grid-row: 1 / span 3;
    width: 100%;
  }

  .px-mine-name,
  .px-mine .px-chips,
  .px-mine-meta {
    grid-column: 2;
  }

  .px-mine-name {
    font-size: 30px;
  }

  .px-mine-pick:has(.is-empty) .px-mine-name {
    font-size: 21px;
  }

  .px-mine .px-chips {
    margin-top: 6px;
  }

  .px-mine-meta {
    margin-top: 6px;
    font-size: 14px;
  }

  .px-mine .px-actions {
    grid-column: 1 / -1;
    margin-top: 14px;
  }

  .px-mine .px-btn {
    width: 100%;
  }

  /* Same lashing-aligned slices as desktop, scaled so the full 1640px frame
     width maps to the box width and one rail section fits between corners. */
  .px-choose,
  .px-frame,
  .px-pool-body {
    --k: calc(100cqw / 1640);
    border-width: calc(86 * var(--k)) calc(70 * var(--k)) calc(92 * var(--k));
    border-image: url("/camp/panel-frame.png") 86 530 102 532 fill /
      calc(86 * var(--k)) calc(530 * var(--k)) calc(102 * var(--k)) calc(532 * var(--k)) / 0 round;
  }

  .px-choose {
    margin-top: 16px;
    padding: 6px 4px 10px;
  }

  .px-choose-head h2 {
    font-size: 17px;
    letter-spacing: 0.04em;
  }

  .px-choose-head {
    margin-bottom: 4px;
  }

  .px-choose .px-tools {
    gap: 8px;
  }

  .px-choose .px-pill {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 6px;
  }

  .px-choose .px-search {
    flex-basis: 100%;
  }

  .px-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .px-strip-btn {
    display: none;
  }

  .px-choose .px-cast-grid {
    gap: 10px;
    padding: 4px 2px 10px;
  }

  .px-choose .px-cast {
    flex-basis: clamp(104px, 36cqw, 124px);
    gap: 6px;
    padding: 8px 6px 10px;
  }

  .px-choose .px-tile {
    width: 76px;
  }

  .px-choose .px-cast-name {
    font-size: 16px;
  }

  .px-choose .px-cast:has(input:checked) .px-cast-name {
    height: 28px;
    padding: 0 12px;
  }

  .px-choose .px-cast .px-chip {
    min-height: 22px;
    font-size: 11px;
  }

  .px-choose .stat-badge {
    padding: 3px 5px;
    font-size: 10.5px;
    line-height: 1.2;
  }

  .px-choose .px-chooser-side {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    height: auto;
    margin-top: 8px;
    padding: 10px 2px 2px;
    border: 0;
    border-top: 1px solid rgba(173, 117, 52, 0.4);
    border-image: none;
    font-size: 15px;
  }

  .px-choose .px-chooser-actions {
    flex-direction: column-reverse;
  }

  .px-pool {
    margin-top: 20px;
  }

  .px-pool .px-tabs {
    gap: 6px;
  }

  .px-pool .px-tabs {
    display: none;
  }

  /* hist-season-lit.png is 600x163; 44px tall keeps the caps at 0.27 scale. */
  .px-view-pick {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 6px -6px;
  }

  .px-view-pick::after {
    content: "▾";
    position: absolute;
    top: 50%;
    right: 34px;
    color: #2a1a0c;
    font-size: 16px;
    pointer-events: none;
    transform: translateY(-52%);
  }

  .px-view-select {
    appearance: none;
    width: 100%;
    height: 44px;
    padding: 0 52px;
    border: 0 solid transparent;
    border-radius: 0;
    border-image: url("/camp/hist-season-lit.png") 81 86 82 fill / 22px 23px / 0 repeat;
    background: none;
    color: #2a1a0c;
    font-family: var(--osw, Oswald, sans-serif);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-align-last: center;
    text-transform: uppercase;
    cursor: pointer;
  }

  .px-view-select:focus-visible {
    outline: 3px solid #fae29b;
    outline-offset: 2px;
  }

  .px-pool-body {
    padding: 10px 4px 8px;
  }

  .px-weekbar {
    row-gap: 4px;
  }

  .px-weekbar .px-weeker {
    gap: 4px;
  }

  .px-framed .px-weekbar .px-field {
    margin-right: 2px;
  }

  .px-weekbar .px-select {
    width: min(340px, 100%);
    padding: 0 64px 0 28px;
    background-position: center;
    background-size: 100% 100%;
    font-size: clamp(15px, 4.4cqw, 18px);
    letter-spacing: 0.03em;
  }

  .px-weekbar .px-arrow {
    width: 40px;
  }

  .px-who-btn {
    padding: 0 28px;
    font-size: 14px;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .px-poolbar {
    margin: 10px 0 12px;
  }

  .px-poolbar .px-pool-search {
    flex-basis: 100%;
  }

  .px-who {
    margin-left: 0;
    width: 100%;
  }

  .px-who-btn {
    flex: 1;
  }

  .px-pool .px-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(72px, auto);
    gap: 8px;
    padding: 10px;
    font-size: 15px;
  }

  .px-pool .px-head {
    font-size: 12px;
  }
}

/* ---------- Private pick link: star plaque, notices, finale chips, old and expired links ---------- */

/* stars-plaque.webp is 900x304 and stars-plaque-lit.webp is 900x326. The
   text box insets are the parchment's edges as a share of the art. */
.px-starplaque {
  container-type: inline-size;
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 900 / 304;
  margin: 18px 0 20px;
  background: url("/picks/stars-plaque.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}

.px-starplaque.is-lit {
  aspect-ratio: 900 / 326;
  background-image: url("/picks/stars-plaque-lit.webp");
  text-align: center;
}

.section > .px-starplaque.is-lit {
  width: min(100%, 640px);
}

.px-starplaque-text {
  position: absolute;
  inset: 22.4% 10% 27% 31%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.px-starplaque.is-lit .px-starplaque-text {
  inset: 34% 16% 24%;
}

.px-starplaque-count {
  margin: 0;
  color: #3b2414;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 7.5cqw;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.px-starplaque-label {
  margin: 0.3em 0 0;
  color: #4a2e17;
  font-size: max(12px, 3.4cqw);
  font-weight: 600;
  line-height: 1.25;
}

.section > .px-starplaque .px-starplaque-count {
  font-size: 6cqw;
}

.section > .px-starplaque .px-starplaque-label {
  font-size: max(12px, 2.8cqw);
}

/* notice-*.webp are 771x164. The side slices keep the corner ferns whole. */
.px-alert {
  margin: 14px 0;
  padding: 6px 4px;
  border-style: solid;
  border-width: 12px 54px;
  border-image: url("/picks/notice-ok.webp") 34 150 fill / 12px 54px / 0 round;
  color: #2f1c0d;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}

.px-alert.is-warn {
  border-image-source: url("/picks/notice-warn.webp");
}

.px-alert.is-error {
  border-image-source: url("/picks/notice-error.webp");
}

/* finale-chip.webp is 480x101; the carved end caps stay square. */
.px-woodchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.px-woodchip {
  padding: 3px 4px;
  border-style: solid;
  border-width: 6px 27px;
  border-image: url("/picks/finale-chip.webp") 16 74 fill / 6px 27px / 0 stretch;
  color: #3b2414;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.px-woodchip span {
  color: inherit !important;
}

.px-oldlink {
  display: flex;
  align-items: center;
  gap: 18px;
}

.px-oldlink img {
  flex: none;
  width: 120px;
  height: auto;
}

.px-oldlink p {
  margin: 0;
}

.px-expired {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 8px auto 0;
}

.px-expired-spot {
  width: 240px;
  height: auto;
  margin-bottom: -4px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5));
}

/* expired-panel.webp is 992x306: a plank centered on the top rail, ferns
   along the bottom 140px. --s is the scale the frame is drawn at. */
.px-expired-panel {
  --s: 0.7;
  position: relative;
  width: 100%;
  padding: 18px 12px 0;
  border-style: solid;
  border-width: calc(60px * var(--s)) calc(60px * var(--s)) calc(140px * var(--s));
  border-image: url("/picks/expired-panel.webp") 60 60 140 fill / calc(60px * var(--s)) calc(60px * var(--s)) calc(140px * var(--s)) / 0 stretch;
  color: #3b2414;
  text-align: center;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55));
}

.px-expired-panel h2 {
  position: absolute;
  top: calc(-52px * var(--s));
  left: 0;
  right: 0;
  margin: 0;
  color: #ffe2ab;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: calc(24px * var(--s));
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: calc(50px * var(--s));
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.px-expired-panel p {
  margin: 0 auto;
  max-width: 520px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .px-oldlink img {
    width: 84px;
  }

  .px-alert {
    font-size: 15px;
  }

  .px-expired-spot {
    width: 180px;
  }

  .px-expired-panel {
    --s: 0.42;
    padding-top: 12px;
  }

  .px-expired-panel h2 {
    font-size: 11px;
  }

  .px-expired-panel p {
    font-size: 15px;
  }
}

/* How picks work. how-frame.webp is 973×255. Corner knots reach about
   x 84 and y 98, past the straight rails (inner opening near 66,63).
   The parchment is a solid sheet tucked a few pixels under those rails. */
.px-how {
  margin-top: 28px;
}

.px-how-head {
  aspect-ratio: 1017 / 231;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: 18%;
  background: url("/picks/how-header.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
  text-align: center;
}

.px-how-head h2 {
  margin: 0;
  color: #f6d78a;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: clamp(22px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.px-how-head p {
  margin: 6px 0 0;
  color: #f4e7cc;
  font-size: clamp(13px, 1.5vw, 18px);
}

.px-how-rule {
  display: block;
  width: min(420px, 70%);
  height: auto;
  margin: 10px auto 0;
}

.px-how-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px 16px;
}

.px-how-card {
  --frame-top: clamp(28px, calc(var(--board, 540px) * 0.107), 58px);
  --frame-x: clamp(24px, calc(var(--board, 540px) * 0.092), 50px);
  --frame-bottom: clamp(26px, calc(var(--board, 540px) * 0.1), 54px);
  --paper-top: calc(var(--frame-top) * 0.28);
  --paper-x: calc(var(--frame-x) * 0.48);
  --paper-bottom: calc(var(--frame-bottom) * 0.33);
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  margin-top: clamp(22px, calc(var(--board, 540px) * 0.066), 36px);
  padding: 2px clamp(6px, calc(var(--board, 540px) * 0.018), 10px) clamp(8px, calc(var(--board, 540px) * 0.022), 12px);
  border-style: solid;
  border-width: var(--frame-top) var(--frame-x) var(--frame-bottom);
  border-image: url("/picks/how-frame.webp") 98 84 92 84 / var(--frame-top) var(--frame-x) var(--frame-bottom) / 0 stretch;
  background-color: transparent;
  background-image: url("/picks/how-parchment-fill.png");
  background-repeat: no-repeat;
  background-origin: border-box;
  background-clip: border-box;
  background-position: var(--paper-x) var(--paper-top);
  background-size: calc(100% - (var(--paper-x) * 2)) calc(100% - var(--paper-top) - var(--paper-bottom));
  color: #3b2414;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45));
}

.px-how-medal {
  position: absolute;
  top: calc(var(--frame-top) * -0.95);
  left: calc(var(--frame-x) * -0.62);
  width: clamp(46px, calc(var(--board, 540px) * 0.137), 74px);
  height: auto;
  z-index: 1;
}

.px-how-card h3 {
  display: flex;
  align-items: center;
  min-height: 1.4em;
  margin: 0 0 8px;
  padding: 0 2px 0 clamp(34px, calc(var(--board, 540px) * 0.09), 52px);
  color: #3a220f;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: clamp(14px, calc(var(--board, 540px) * 0.033), 18px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.px-how-body {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(10px, calc(var(--board, 540px) * 0.03), 16px);
}

.px-how-icon {
  width: 100%;
  height: auto;
}

.px-how-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.px-how-body p {
  margin: 0;
  font-size: clamp(13px, calc(var(--board, 540px) * 0.028), 15px);
  line-height: 1.45;
}

.px-how-note {
  margin: 0 !important;
  padding: 8px 10px;
  background: rgba(214, 154, 42, 0.92);
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 860px) {
  .px-how-head {
    padding-inline: 22%;
  }

  .px-how-head h2 {
    font-size: 18px;
  }

  .px-how-head p {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.25;
  }

  .px-how-grid {
    grid-template-columns: 1fr;
  }
}

/* Who's in the pool. The planks are the roster kit; the words stay HTML so
   the count, the letters, and the names can change. */
.pool-board {
  margin-top: 22px;
}
.pool-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pool-title,
.pool-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: solid transparent;
  color: #f6ecd4;
  font-family: Oswald, var(--font-display), sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.1;
}
.pool-title {
  flex: 1 1 auto;
  min-width: 0;
  aspect-ratio: 990 / 227;
  min-height: 0;
  padding: 5.7% 16.2% 9.4% 13.1%;
  border: 0;
  background: url("/roster/title.png") center / 100% 100% no-repeat;
  font-size: clamp(15px, 1.8vw, 24px);
  line-height: 1;
  letter-spacing: 0.06em;
}
.pool-badge {
  flex: 0 0 auto;
  min-width: 148px;
  min-height: 64px;
  padding: 4px 6px;
  border-width: 18px 36px;
  border-image: url("/roster/count.png") 52 130 52 130 fill / 18px 36px / 0 stretch;
  font-size: 15px;
}
.pool-badge span {
  margin-right: 0.35em;
}
.pool-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pool-search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  border: solid transparent;
  border-width: 12px 18px 12px 72px;
  border-image: url("/roster/search.png") 20 36 20 130 fill / 12px 18px 12px 72px / 0 stretch;
}
.pool-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #3d2b16;
  font: 16px var(--font-body);
  outline: none;
}
.pool-search input::placeholder {
  color: #8a7048;
}
.pool-filters {
  display: flex;
  flex: 0 1 auto;
  gap: 8px;
}
.pool-filters button,
.pool-more {
  border: solid transparent;
  background: none;
  color: #f4ead2;
  font-family: Oswald, var(--font-display), sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.pool-filters button {
  min-height: 48px;
  padding: 0 8px;
  border-width: 14px 22px;
  border-image: url("/roster/filter-off.png") 36 72 36 72 fill / 14px 22px / 0 stretch;
  font-size: 14px;
  white-space: nowrap;
}
.pool-filters button[aria-pressed="true"] {
  border-image-source: url("/roster/filter-on.png");
  color: #f7f3e6;
}
.pool-sort {
  flex: 0 1 210px;
  min-width: 0;
  margin: 0;
}
.pool-sort select {
  width: 100%;
  min-height: 48px;
  border: solid transparent;
  border-width: 12px 16px;
  border-image: url("/roster/button.png") 44 90 fill / 12px 16px / 0 stretch;
  background: transparent;
  color: #f4ead2;
  font: 14px Oswald, var(--font-display), sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pool-alpha,
.pool-jump {
  display: none;
}
.pool-board.is-open .pool-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 12px;
}
.pool-key {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: url("/roster/letter.png") center / 100% 100% no-repeat;
  color: #f0d9a0;
  font-family: Oswald, var(--font-display), sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.pool-key.is-all {
  width: 44px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.pool-key[aria-pressed="true"] {
  background-image: url("/roster/letter-on.png");
  color: #fff8e8;
}
.pool-key:disabled {
  opacity: 0.38;
  cursor: default;
}
.pool-jump {
  margin: 0 0 12px;
}
.pool-jump select {
  width: 100%;
  min-height: 48px;
  border: solid transparent;
  border-width: 12px 22px;
  border-image: url("/roster/button.png") 44 90 fill / 12px 22px / 0 stretch;
  background: transparent;
  color: #f4ead2;
  font: 16px Oswald, var(--font-display), sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
}
.pool-person {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 52px;
  padding: 2px 8px 2px 4px;
  border: solid transparent;
  border-width: 12px 16px;
  border-image: url("/roster/player.png") 28 40 28 40 fill / 12px 16px / 0 stretch;
  color: #f6ecd4;
  text-decoration: none;
}
.pool-person:hover {
  filter: brightness(1.12);
}
.pool-initial {
  width: 36px;
  height: 36px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("/roster/initial.png") center / contain no-repeat;
  color: #f7f1e2;
  font-family: Oswald, var(--font-display), sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.pool-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
}
.pool-shown {
  margin: 12px 0 0;
  color: #cbb892;
  font-size: 13px;
  text-align: center;
}
.pool-more {
  display: none;
  margin: 14px auto 0;
  min-width: min(100%, 320px);
  min-height: 52px;
  padding: 0 8px;
  border-width: 14px 36px;
  border-image: url("/roster/button.png") 48 100 fill / 14px 36px / 0 stretch;
  font-size: 16px;
}
.pool-board.is-enhanced .pool-more:not([hidden]) {
  display: block;
  width: fit-content;
}
.pool-more::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  vertical-align: 2px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #e7d3a4;
}
.pool-empty {
  margin: 14px 0 0;
  color: #cbb892;
  text-align: center;
}
.pool-person[hidden],
.pool-shown[hidden],
.pool-more[hidden],
.pool-empty[hidden] {
  display: none !important;
}
@media (max-width: 980px) {
  .pool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .pool-head,
  .pool-tools {
    flex-direction: column;
    align-items: stretch;
  }
  .pool-title {
    font-size: 16px;
  }
  .pool-badge {
    align-self: center;
    min-width: 132px;
    min-height: 48px;
    border-width: 12px 24px;
    border-image-width: 12px 24px;
    font-size: 13px;
  }
  .pool-search,
  .pool-sort {
    flex: none;
    width: 100%;
    min-height: 48px;
  }
  .pool-filters {
    display: grid;
    grid-template-columns: 1fr;
  }
  .pool-filters button {
    width: 100%;
    min-height: 44px;
    border-width: 10px 18px;
    border-image-width: 10px 18px;
    font-size: 14px;
  }
  .pool-board.is-open .pool-alpha {
    display: none;
  }
  .pool-board.is-open .pool-jump {
    display: block;
  }
  .pool-grid {
    grid-template-columns: 1fr;
  }
  .pool-search input,
  .pool-jump select,
  .pool-sort select {
    font-size: 16px;
  }
}

/* ---------- Season 51 pick chooser ---------- */

.px-flow {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.px-flow > .px-alert {
  margin: 0;
}

.px-alert[hidden] {
  display: none;
}

.px-s51-status {
  position: relative;
  margin: 12px 0 16px;
  aspect-ratio: 1498 / 188;
  background: url("/picks/s51/status-strip.webp") center / 100% 100% no-repeat;
  color: #2a160c;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.4));
}

.px-flow .px-s51-status,
.px-flow .section,
.px-flow .px-panel,
.px-flow .px-finale-save {
  margin: 0;
}

/* The board art includes the torches and leaves, so the boxes are taller than
   the wood. Pull the next board up into that empty margin. */
.px-flow .px-s51-hero {
  margin: -4.8% 0 0;
}

.px-flow .px-s51-choose {
  margin: -11% 0 0;
}

.px-s51-status-copy {
  position: absolute;
  left: 14%;
  right: 32%;
  top: 30%;
  bottom: 26%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  gap: 2px 10px;
  margin: 0;
  min-width: 0;
  font-size: clamp(12px, 1.45vw, 16px);
  line-height: 1.25;
}

.px-s51-status-copy strong {
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.px-s51-picked {
  color: #5c3a1c;
  font-size: 13px;
}

.px-s51-timer {
  position: absolute;
  left: 71%;
  right: 10.5%;
  top: 32%;
  bottom: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #f6edd8;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: clamp(12px, 1.5vw, 18px);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.px-s51-note {
  margin: -8px 8px 12px;
  color: #f0e2c4;
  font-size: 14px;
}

.px-s51-hi,
.px-private-note {
  margin: 0 8px 4px;
  color: #f0e2c4;
  font-size: 15px;
  line-height: 1.4;
}

.px-private-note {
  margin: 4px 8px 12px;
}

.px-s51-hero {
  position: relative;
  margin: 4px 0 8px;
  aspect-ratio: 2172 / 724;
  background: url("/picks/s51/your-pick-hero.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.5));
}

.px-s51-hero-body {
  position: absolute;
  left: 19%;
  right: 16%;
  top: 31%;
  bottom: 24%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}

.px-s51-hero-main {
  display: grid;
  grid-template-columns: clamp(84px, 16%, 136px) minmax(0, 1fr) 168px;
  grid-template-areas: "frame ident action";
  align-items: center;
  gap: 8px 14px;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.px-s51-hero-main:not(:has(.px-s51-change, .px-s51-textlink)) {
  grid-template-columns: clamp(84px, 16%, 136px) minmax(0, 1fr);
  grid-template-areas: "frame ident";
}

.px-s51-hero .px-s51-frame {
  grid-area: frame;
  width: 100%;
  height: auto;
  max-height: 100%;
  align-self: center;
}

.px-s51-ident {
  grid-area: ident;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.px-s51-name {
  margin: 0;
  max-width: 100%;
  color: #3a2414;
  font-family: var(--font-display), Palatino, "Palatino Linotype", serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.px-s51-result,
.px-s51-visitor {
  margin: 0;
  color: #3a2414;
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1.35;
}

/* The visitor note has no portrait, so it uses the whole parchment instead of the portrait column. */
.px-s51-hero.is-visitor .px-s51-hero-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  left: 22%;
  right: 18%;
  text-align: center;
}

.px-s51-visitor {
  max-width: 36em;
  text-align: center;
  text-wrap: balance;
}

.px-s51-textlink {
  color: #6a3a12;
  font-family: var(--osw, Oswald, sans-serif);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.px-s51-change,
.px-s51-textlink {
  grid-area: action;
  justify-self: end;
  min-width: 0;
}

.px-s51-change {
  display: block;
  width: 168px;
  max-width: 100%;
  line-height: 0;
}

.px-s51-change[hidden] {
  display: none;
}

.px-s51-change img {
  width: 100%;
  height: auto;
}

.px-s51-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  color: #f0e2c4;
  font-size: clamp(12px, 1.25vw, 15px);
  line-height: 1.2;
}

.px-s51-hero .px-s51-meta,
.px-s51-hero .px-s51-dot {
  color: #3b2414;
}

.px-s51-hero .px-s51-meta {
  flex: none;
  padding-left: 0;
  font-size: 13px;
  color: #5c3d22;
}

.px-s51-save-line:empty,
.px-s51-save-line:empty + .px-s51-dot {
  display: none;
}

.px-s51-hero.is-saving .px-s51-frame {
  opacity: 0.78;
}

.px-s51-hero.is-saving .px-s51-save-line {
  color: #8a4e12;
  font-style: italic;
}

.px-s51-starline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.px-s51-starline > span {
  color: #c9842a;
  font-size: 1.1em;
  line-height: 1;
}

.px-s51-help {
  position: relative;
  display: inline-flex;
}

.px-s51-help-btn {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid #ce9944;
  border-radius: 50%;
  background: #1d150e;
  color: #e9bd63;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.45);
}

.px-s51-help-btn:focus-visible,
.px-s51-tooltip-close:focus-visible {
  outline: 3px solid #f3c567;
  outline-offset: 2px;
}

.px-s51-tooltip {
  position: fixed;
  z-index: 40;
  width: min(405px, calc(100vw - 32px));
  margin: 0;
  padding: 25px 27px 24px;
  background: url("/picks/s51/star-help-parchment.webp") center / 100% 100% no-repeat;
  color: #301c0b;
  filter: drop-shadow(0 9px 18px rgba(0, 0, 0, 0.4));
}

.px-s51-tooltip[hidden] {
  display: none;
}

.px-s51-tooltip h2 {
  margin: 0 28px 10px 0;
  color: #4a2c10;
  font-family: Georgia, Palatino, "Palatino Linotype", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.px-s51-tooltip p {
  margin: 0 0 10px;
  color: #301c0b;
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 13.8px;
  line-height: 1.48;
}

.px-s51-tooltip p:last-of-type {
  margin-bottom: 0;
}

.px-s51-tooltip b {
  font-weight: 700;
}

.px-s51-tooltip-close {
  position: absolute;
  top: 18px;
  right: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #55351d;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.83;
}

.px-s51-tooltip-close:hover {
  opacity: 1;
}

@media (max-width: 760px) {
  .px-s51-tooltip {
    padding: 18px 19px 18px;
  }

  .px-s51-tooltip h2 {
    font-size: 17px;
  }

  .px-s51-tooltip p {
    font-size: 12.8px;
  }

  .px-s51-tooltip-close {
    top: 14px;
    right: 15px;
  }
}

.px-s51-frame {
  position: relative;
  display: block;
  aspect-ratio: 1087 / 1042;
  container-type: inline-size;
}

.px-s51-face {
  position: absolute;
  left: 18.8%;
  top: 15.2%;
  width: 62.3%;
  height: 58%;
  object-fit: cover;
  object-position: center 15%;
  z-index: 0;
}

.px-s51-face.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #24180f;
  color: #f0e2c4;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 28px;
}

.px-s51-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.px-s51-card .px-s51-art.is-selected {
  opacity: 0;
}

.px-s51-card.is-confirmed .px-s51-art.is-idle {
  opacity: 0;
}

.px-s51-card.is-confirmed .px-s51-art.is-selected {
  opacity: 1;
}

.px-s51-card.is-pending .px-s51-frame {
  outline: 3px solid #f0c766;
  outline-offset: 3px;
}

.px-s51-frame.is-plain {
  background:
    linear-gradient(#4a3018, #2a1a10);
  border: 8px solid #8a6230;
  border-radius: 8px;
}

.px-s51-frame.is-plain .px-s51-face {
  left: 10%;
  top: 8%;
  width: 80%;
  height: 64%;
}

.px-s51-cardname {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 79.5%;
  height: 12%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff8ea;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 8.5cqw;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.px-s51-hero .px-s51-cardname,
.px-s51-card[data-slug="toka"] .px-s51-cardname,
.px-s51-card.is-confirmed .px-s51-cardname {
  color: #1b1208;
  text-shadow: none;
}

.px-s51-frame.is-plain .px-s51-cardname {
  display: none;
}

.px-s51-choose {
  container-type: inline-size;
  margin: 18px 0 8px;
  min-width: 0;
}

.px-s51-form {
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.45));
}

.px-s51-board-top {
  aspect-ratio: 1501 / 178;
  background: url("/picks/s51/chooser-top.webp") center / 100% 100% no-repeat;
}

.px-s51-board-mid {
  display: grid;
  grid-template-columns: 15.7% minmax(0, 1fr) 15.8%;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  max-height: min(680px, 72vh);
  overflow: hidden;
  background: transparent;
}

.px-s51-board-mid::before,
.px-s51-board-mid::after {
  content: "";
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
}

.px-s51-board-mid::before {
  background-image: url("/picks/s51/chooser-rail-left.webp");
}

.px-s51-board-mid::after {
  background-image: url("/picks/s51/chooser-rail-right.webp");
}

.px-s51-board-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 0 0 10px;
  background: url("/picks/s51/chooser-wood.webp") center / cover no-repeat;
}

.px-s51-choose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.px-s51-choose-heading {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 0;
}

.px-s51-choose-heading img {
  display: block;
  width: min(560px, 100%);
  height: auto;
}

.px-s51-choose-head .px-s51-all {
  flex: none;
  margin: 0;
  color: #ffe7a8;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.px-s51-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.px-s51-filter {
  position: relative;
  flex: none;
  width: 118px;
  aspect-ratio: 720 / 184;
  padding: 0;
  border: 0;
  background: none;
  color: #f6ecd4;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.px-s51-filter img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.px-s51-filter .is-active,
.px-s51-filter.is-on .is-idle {
  display: none;
}

.px-s51-filter.is-on .is-active {
  display: block;
}

.px-s51-filter span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.px-s51-filter.is-on span {
  color: #160d0c;
  text-shadow: none;
}

.px-s51-filter.is-plain {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #2a1c12;
  box-shadow: inset 0 0 0 2px #8a6230;
}

.px-s51-filter.is-plain.is-on {
  background: #f0d7a4;
  color: #160d0c;
}

.px-s51-search {
  position: relative;
  flex: 1 1 220px;
  min-width: min(180px, 100%);
  max-width: 420px;
  aspect-ratio: 862 / 134;
  background: url("/picks/s51/search-blank.webp") center / 100% 100% no-repeat;
}

.px-s51-search input {
  position: absolute;
  left: 18%;
  right: 8%;
  top: 22%;
  bottom: 22%;
  width: auto;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f4ecdf;
  font-size: 16px;
}

.px-s51-search input::placeholder {
  color: #c4b396;
}

.px-s51-sort {
  position: relative;
  flex: none;
  width: 168px;
  aspect-ratio: 406 / 118;
  padding: 0;
  border: 0;
  background: url("/picks/s51/sort-blank.webp") center / 100% 100% no-repeat;
  color: #f4ecdf;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.px-s51-sort span {
  position: absolute;
  left: 18%;
  right: 22%;
  top: 16%;
  bottom: 16%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.px-s51-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px 12px;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  align-content: start;
}

.px-s51-grid [hidden] {
  display: none;
}

.px-s51-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: inherit;
  cursor: pointer;
}

.px-s51-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.px-s51-card .px-s51-frame {
  width: 100%;
}

.px-s51-card:has(input:focus-visible) .px-s51-frame {
  outline: 2px solid #f0c766;
  outline-offset: 3px;
}

.px-s51-card.is-used {
  cursor: default;
  opacity: 0.55;
}

.px-s51-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: min(112px, 86%);
  aspect-ratio: 680 / 176;
}

.px-s51-hero .px-s51-badge {
  width: 112px;
}

.px-s51-badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.px-s51-badge span {
  position: relative;
  z-index: 1;
  width: 100%;
  color: #fff;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  text-transform: uppercase;
}

.px-s51-badge.is-plain {
  width: auto;
  min-width: 64px;
  aspect-ratio: auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.px-s51-badge.is-plain span {
  text-shadow: none;
}

.px-s51-card .stat-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 0;
  gap: 4px;
}

.px-s51-card .stat-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 5px 7px;
  color: #f6edd4;
  background: rgba(12, 8, 5, 0.55);
  border-color: rgba(243, 215, 161, 0.4);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.px-s51-card .stat-badge svg {
  width: 12px;
  height: 12px;
}

.px-s51-card .stat-badge > span {
  text-align: center;
  text-wrap: balance;
}

.px-s51-used {
  color: #e7d3a8;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.px-s51-go {
  position: absolute;
  left: 30%;
  right: 30%;
  top: 2%;
  bottom: 46%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 8px;
  border: 0;
  background: none;
  color: #3a2414;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: clamp(13px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 236, 200, 0.55);
  cursor: pointer;
}

.px-s51-go:disabled {
  cursor: default;
}

.px-s51-cancel {
  color: #f0e2c4;
}

a.px-s51-all {
  color: #f0c766;
}

.px-finale-save {
  min-width: 0;
  padding: 10px 12px 12px;
  border: 1px solid rgba(206, 153, 68, 0.4);
  border-radius: 10px;
  background: rgba(16, 10, 7, 0.55);
  color: #f3e6c8;
}

.px-finale-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}

.px-finale-details > summary::-webkit-details-marker {
  display: none;
}

.px-finale-title {
  font-family: var(--font-display), Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.px-finale-count {
  flex: none;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(240, 199, 102, 0.16);
  color: #f0c766;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 13px;
  text-align: center;
}

.px-finale-copy,
.px-finale-empty {
  margin: 0 0 10px;
  color: #f0e2c4;
  font-size: 14px;
  line-height: 1.4;
}

.px-finale-save .px-woodchips {
  margin: 0;
  align-items: center;
  justify-content: flex-start;
}

.px-finale-save .px-woodchip {
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}

@media (max-width: 760px) {
  .px-flow {
    gap: 0;
  }

  .px-flow .px-s51-hero {
    margin-top: 10px;
  }

  .px-flow .px-s51-choose {
    margin-top: 12px;
  }

  .px-s51-choose-head {
    flex-wrap: wrap;
  }

  .px-s51-choose-heading {
    flex: 1 1 100%;
  }

  .px-s51-status {
    aspect-ratio: 1498 / 188;
    min-height: 0;
    margin-bottom: 0;
  }

  .px-s51-status-copy,
  .px-s51-status.is-tight .px-s51-status-copy {
    position: absolute;
    left: 15%;
    right: 31%;
    top: 14%;
    bottom: 16%;
    height: auto;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    gap: 0 8px;
  }

  .px-s51-status-copy strong,
  .px-s51-status.is-tight .px-s51-status-copy strong,
  .px-s51-status.is-tight .px-s51-until,
  .px-s51-until,
  .px-s51-picked {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    display: inline;
    color: #2a160c;
    font-size: 11px;
    line-height: 1.15;
    letter-spacing: 0.04em;
  }

  .px-s51-status-copy strong {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .px-s51-timer {
    font-size: clamp(10px, 3vw, 14px);
  }

  .px-s51-board-mid {
    min-height: 0;
    max-height: 70vh;
  }

  .px-s51-go {
    top: 4%;
    bottom: 44%;
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .px-s51-hero {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    background: none;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
  }

  .px-s51-hero::before {
    content: "";
    display: block;
    aspect-ratio: 2172 / 250;
    background: url("/picks/s51/your-pick-hero.webp") top center / 100% auto no-repeat;
    filter: none;
  }

  .px-s51-hero.is-visitor {
    display: block;
    aspect-ratio: 2172 / 724;
    background: url("/picks/s51/your-pick-hero.webp") center / 100% 100% no-repeat;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
  }

  .px-s51-hero.is-visitor::before {
    display: none;
  }

  .px-s51-hero.is-visitor .px-s51-hero-body {
    position: absolute;
    left: 18%;
    right: 16%;
    top: 28%;
    bottom: 16%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
  }

  .px-s51-hero-body {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    display: flex;
    width: auto;
    min-height: 0;
    margin: -10px 9% 0;
    padding: 10px 12px 12px;
    background: linear-gradient(#f3dcb4, #e4bc78);
    border: 3px solid #6a4322;
    border-top: 0;
    border-radius: 0 0 12px 12px;
  }

  .px-s51-hero .px-s51-frame {
    width: 76px;
    justify-self: center;
  }

  .px-s51-hero-main {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas: "frame ident" "frame action";
    align-items: center;
    justify-items: center;
    gap: 2px 10px;
  }

  .px-s51-ident {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .px-s51-hero .px-s51-meta {
    justify-content: center;
    padding-left: 0;
    font-size: 11px;
    text-align: center;
    row-gap: 2px;
  }

  .px-s51-hero .px-s51-save-line {
    flex: 1 0 100%;
    text-align: center;
  }

  .px-s51-hero .px-s51-dot {
    display: none;
  }

  .px-s51-name {
    font-size: 22px;
    text-align: center;
  }

  .px-s51-change,
  .px-s51-textlink {
    justify-self: center;
  }

  .px-s51-change {
    width: min(132px, 100%);
  }

  .px-s51-badge {
    width: min(88px, 100%);
  }

  .px-s51-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .px-s51-filter {
    flex: 1 1 30%;
    width: auto;
    max-width: none;
    min-width: 0;
    font-size: 12px;
  }

  .px-s51-filter::after,
  .px-s51-sort::after,
  .px-s51-help-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 44px;
    transform: translateY(-50%);
  }

  .px-s51-help-btn {
    position: relative;
  }

  .px-s51-search {
    flex: 1 1 140px;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .px-s51-sort {
    flex: 0 0 148px;
    width: 148px;
  }

  .px-s51-search input,
  .px-s51-sort {
    font-size: 16px;
  }

  .px-finale-title {
    font-size: 16px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .px-s51-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Explore the pool ---------- */

.px-explore-lead,
.px-afterlock,
.px-explore-empty {
  margin: 12px 4px;
  color: #f3e7cb;
  font-size: 15px;
  line-height: 1.45;
}

.px-lockbox {
  margin: 8px 4px 14px;
  padding: 12px 14px;
  border: 1px solid #8a6230;
  border-radius: 10px;
  background: rgba(36, 22, 10, 0.72);
  color: #f6e7c4;
  font-size: 15px;
  line-height: 1.45;
}

.px-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.px-counts,
.px-hist,
.px-log {
  width: 100%;
  border-collapse: collapse;
  color: #f3e7cb;
  font-size: 15px;
}

.px-counts th,
.px-hist th,
.px-log th,
.px-counts td,
.px-hist td,
.px-log td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(243, 231, 203, 0.16);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.px-counts thead th,
.px-hist thead th,
.px-log thead th {
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e7c98a;
}

.px-rank,
.px-count {
  color: #f0c766;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 22px;
  font-weight: 700;
}

.px-castline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.px-castline img,
.px-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #3a2818;
}

.px-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f3e7cb;
  font-size: 12px;
  font-weight: 700;
}

.px-tribe {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff8ea;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.px-picked-row td {
  padding-top: 0;
  background: rgba(0, 0, 0, 0.18);
}

.px-picked summary {
  cursor: pointer;
  color: #e7c98a;
  font-weight: 700;
}

.px-picked ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
}

.px-picked li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.px-hist th span,
.px-log th span {
  display: block;
  color: #cbb892;
  font-family: var(--font, inherit);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.px-outlook {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 4px 14px;
}

.px-outlook p {
  min-width: 180px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #8a6230;
  border-radius: 10px;
  background: rgba(36, 22, 10, 0.55);
}

.px-outlook span {
  display: block;
  color: #cbb892;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.px-outlook b {
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 22px;
  font-weight: 700;
}

.px-later {
  color: #cbb892;
  font-style: italic;
  white-space: normal;
}

.px-log td,
.px-log th {
  white-space: normal;
}

.px-lockedpicks {
  display: block;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .px-counts,
  .px-hist,
  .px-log {
    font-size: 14px;
  }

  .px-counts th,
  .px-hist th,
  .px-log th,
  .px-counts td,
  .px-hist td,
  .px-log td {
    padding: 8px;
  }
}

.px-explore-title {
  margin: 4px 8px 10px;
  color: #f0c766;
  font-family: var(--osw, Oswald, sans-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.px-weekhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.px-weekhead .px-lockbox {
  flex: 1 1 280px;
  margin: 0;
}

.px-hist,
.px-log tr.is-aired {
  background: #f4e2bf;
  color: #2a1a0c;
}

.px-hist th,
.px-hist td,
.px-log tr.is-aired th,
.px-log tr.is-aired td {
  color: #2a1a0c;
  border-bottom-color: rgba(42, 26, 12, 0.16);
}

.px-hist thead th,
.px-log tr.is-aired thead th {
  color: #6a4520;
}

.px-hist th span,
.px-log tr.is-aired th span {
  color: #7a5a32;
}

.px-s51-choose-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.px-s51-headtools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.px-s51-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.px-s51-rowbtn {
  width: 36px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #f0c766;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.px-s51-choose .px-s51-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  align-content: stretch;
}

.px-s51-choose .px-s51-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
}

@media (max-width: 720px) {
  .px-explore-title {
    font-size: 22px;
  }

  .px-s51-row {
    display: block;
  }

  .px-s51-rowbtn {
    display: none;
  }

  .px-s51-choose .px-s51-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  .px-s51-choose .px-s51-card {
    flex: none;
    width: auto;
  }
}
