/* Party Mode: a gameshow set. Electric violet stage, sunburst, marquee bulbs,
   slanted podium cards with ink outlines and hard shadows. */
.pm-stage,
.pm-card,
.pm-moment {
  --pm-stage: #3613c9;
  --pm-stage-2: #2b0ca6;
  --pm-deep: #1c0670;
  --pm-ink: #14072e;
  --pm-white: #ffffff;
  --pm-yellow: #ffd23f;
  --pm-pink: #ff3e8a;
  --pm-cyan: #3fe3ff;
  --pm-soft: #ddd4ff;
  /* Kept for any older hook that still reads them. */
  --pm-navy: var(--pm-ink);
  --pm-panel: var(--pm-white);
  --pm-blue: var(--pm-yellow);
  --pm-muted: var(--pm-soft);
  --pm-display: "Archivo", "IBM Plex Sans", sans-serif;
  --pm-line: 3px;
  --pm-drop: 6px;
  font-family: "Archivo", "IBM Plex Sans", sans-serif;
  color: var(--pm-white);
  background: var(--pm-stage);
}

/* ---------- The set: sunburst, glow and chasing bulbs ---------- */
.pm-stage,
.takeover .to-card.pm-moment,
.pm-card {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 50% 108%, #ff3e8a66, transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 55%, #12045299),
    var(--pm-stage);
}
.pm-stage::before,
.pm-card::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 100%;
  width: 260vmax;
  height: 260vmax;
  margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(
    from 0deg,
    #ffffff10 0deg 7deg,
    transparent 7deg 14deg
  );
  animation: pm-spin 140s linear infinite;
  pointer-events: none;
}
.pm-stage::after,
.takeover .to-card.pm-moment::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  --bulb: radial-gradient(
    circle,
    var(--pm-yellow) 0 3px,
    #ffd23f55 3.5px 5px,
    transparent 5.5px
  );
  background:
    var(--bulb) 0 0 / 24px 12px repeat-x,
    var(--bulb) 0 100% / 24px 12px repeat-x;
  animation: pm-chase 1.2s steps(2) infinite;
}

/* ---------- Shared pieces ---------- */
.pm-slug {
  display: inline-block;
  background: var(--pm-yellow);
  color: var(--pm-ink);
  padding: 7px 14px 6px;
  border: var(--pm-line) solid var(--pm-ink);
  box-shadow: 4px 4px 0 var(--pm-ink);
  transform: skew(-10deg) rotate(-2deg);
  font-family: var(--pm-display);
  font-stretch: 80%;
  font-size: clamp(11px, 1vw, 17px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pm-stage {
  width: 100%;
  height: 100%;
  padding: clamp(18px, 2.4vw, 42px) clamp(18px, 2.6vw, 46px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vh, 20px);
  overflow: hidden;
}
.pm-mast,
.pm-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: clamp(10px, 0.9vw, 15px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}
.pm-mast > span:last-child {
  color: var(--pm-yellow);
  font-style: italic;
}
.pm-bottom {
  margin: auto calc(clamp(18px, 2.6vw, 46px) * -1)
    calc(clamp(18px, 2.4vw, 42px) * -1);
  padding: 12px clamp(18px, 2.6vw, 46px) 18px;
  letter-spacing: 0.02em;
  background: var(--pm-ink);
  color: var(--pm-soft);
  flex-shrink: 0;
}
.pm-bottom strong {
  white-space: nowrap;
  color: var(--pm-ink);
  background: var(--pm-yellow);
  padding: 4px 12px;
  transform: skew(-10deg);
  font-style: italic;
  font-weight: 900;
}
.pm-stage h2,
.pm-card h2,
.pm-moment h2 {
  font-family: var(--pm-display);
  font-stretch: 72%;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.86;
  margin: 0;
  font-size: clamp(42px, 6.4vw, 124px);
  color: var(--pm-white);
  text-shadow: 0.05em 0.05em 0 var(--pm-pink);
  text-wrap: balance;
}
.pm-stage h2 em,
.pm-card h2 em {
  font-style: inherit;
  color: var(--pm-yellow);
}

/* ---------- Rules scene ---------- */
.pm-rules-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3vw;
  align-items: center;
  flex: 1;
  min-height: 0;
}
.pm-rules-layout > div > p {
  font-size: clamp(14px, 1.35vw, 24px);
  line-height: 1.4;
  font-weight: 600;
  color: var(--pm-soft);
  margin: 22px 0 0;
}
.pm-rules-visual {
  position: relative;
  padding-bottom: 38px;
}
.pm-rules-visual .pm-cast {
  gap: 0;
  align-items: end;
}
.pm-rules-visual .pm-person:nth-child(2) {
  z-index: 2;
  transform: scale(1.14);
}
.pm-rules-visual .pm-person-art {
  height: clamp(120px, 26vh, 370px);
}
.pm-rules-visual .pm-person figcaption {
  font-size: clamp(11px, 1.1vw, 18px);
  min-height: 0;
}
.pm-scenery-stamp {
  display: inline-block;
  padding: 8px 18px 7px;
  transform: rotate(-6deg) skew(-10deg);
  background: var(--pm-pink);
  color: var(--pm-white);
  border: var(--pm-line) solid var(--pm-ink);
  box-shadow: 5px 5px 0 var(--pm-ink);
  font-family: var(--pm-display);
  font-stretch: 75%;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(14px, 1.8vw, 32px);
  animation: pm-wobble 2.4s ease-in-out infinite;
}
.pm-rules-visual > .pm-scenery-stamp {
  position: absolute;
  bottom: -14px;
  right: -6px;
  z-index: 3;
}
.pm-rules-visual {
  padding-bottom: clamp(44px, 6vh, 70px);
}
.pm-rule-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 24px);
  font-size: clamp(13px, 1.25vw, 22px);
  font-weight: 800;
}
.pm-rule-strip > span {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--pm-white);
  color: var(--pm-ink);
  border: var(--pm-line) solid var(--pm-ink);
  box-shadow: var(--pm-drop) var(--pm-drop) 0 var(--pm-ink);
  padding: 8px 14px;
  transform: skew(-10deg);
}
.pm-rule-strip b {
  font-family: var(--pm-display);
  font-stretch: 72%;
  font-weight: 900;
  font-style: italic;
  font-size: 1.6em;
  line-height: 1;
  color: var(--pm-pink);
}

/* ---------- People: slanted podiums ---------- */
.pm-cast {
  display: grid;
  grid-template-columns: repeat(var(--cast, 1), minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
  align-items: end;
  min-width: 0;
}
.pm-person {
  margin: 0;
  position: relative;
  min-width: 0;
  animation: pm-pop 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
.pm-person:nth-child(2) {
  animation-delay: 0.08s;
}
.pm-person:nth-child(3) {
  animation-delay: 0.16s;
}
.pm-person:nth-child(4) {
  animation-delay: 0.24s;
}
.pm-person:nth-child(5) {
  animation-delay: 0.32s;
}
.pm-person-art {
  height: clamp(140px, 32vh, 400px);
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  isolation: isolate;
}
.pm-person-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 24% 4% 0;
  background:
    repeating-linear-gradient(-55deg, transparent 0 12px, #ffffff24 12px 24px),
    var(--c, #6b4cf0);
  border: var(--pm-line) solid var(--pm-ink);
  border-bottom: 0;
  transform: skew(-10deg);
}
.pm-cutout {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(6px 0 0 var(--pm-ink));
}
.pm-person figcaption {
  position: relative;
  z-index: 2;
  background: var(--pm-white);
  color: var(--pm-ink);
  padding: 7px 12px 8px;
  border: var(--pm-line) solid var(--pm-ink);
  box-shadow:
    inset 0 -6px 0 var(--c, #6b4cf0),
    var(--pm-drop) var(--pm-drop) 0 var(--pm-ink);
  transform: skew(-10deg);
  font-family: var(--pm-display);
  font-stretch: 78%;
  font-size: clamp(12px, 1.45vw, 25px);
  line-height: 1.05;
  text-transform: uppercase;
}
.pm-person figcaption strong {
  display: block;
  font-weight: 900;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-person figcaption small {
  display: inline-block;
  margin: 5px 0 4px;
  padding: 2px 6px;
  background: var(--pm-ink);
  color: var(--pm-yellow);
  font-size: clamp(8px, 0.7vw, 12px);
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: 0.06em;
}
.pm-person-fallback {
  font-family: var(--pm-display);
  font-stretch: 72%;
  font-style: italic;
  font-size: clamp(40px, 6.5vw, 100px);
  font-weight: 900;
  color: var(--pm-white);
  text-shadow: 0.05em 0.05em 0 var(--pm-ink);
  padding-bottom: 18%;
}
.pm-out .pm-cutout {
  filter: grayscale(1) drop-shadow(6px 0 0 var(--pm-ink));
  opacity: 0.35;
}
.pm-out .pm-person-art::before {
  background:
    repeating-linear-gradient(-55deg, transparent 0 12px, #ffffff14 12px 24px),
    #4a3a7e;
}
.pm-out figcaption {
  background: #cfc8e6;
  color: #4a3a7e;
  box-shadow:
    inset 0 -6px 0 #7a6aa8,
    var(--pm-drop) var(--pm-drop) 0 var(--pm-ink);
}
.pm-out figcaption strong {
  text-decoration: line-through 3px var(--pm-pink);
}
.pm-out figcaption small {
  background: var(--pm-pink);
  color: var(--pm-white);
}

/* ---------- Scene headings ---------- */
.pm-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.pm-heading h2 {
  font-size: clamp(36px, 5.2vw, 96px);
}
.pm-heading > span {
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pm-yellow);
}
.pm-census {
  display: flex;
  gap: 14px;
  align-items: center;
}
.pm-census > b {
  font-family: var(--pm-display);
  font-stretch: 72%;
  font-style: italic;
  font-size: clamp(70px, 8vw, 150px);
  font-weight: 900;
  line-height: 0.85;
  color: var(--pm-yellow);
  text-shadow: 0.05em 0.05em 0 var(--pm-pink);
}
.pm-census > span {
  font-size: clamp(10px, 1vw, 16px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}
.pm-chris > .pm-cast {
  flex: 1;
  align-content: end;
  padding: 0 8px 14px;
}
.pm-chris .pm-person-art {
  height: clamp(120px, 34vh, 420px);
}
.pm-honourable {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  transform: rotate(-3deg);
}
.pm-chris .pm-honourable .pm-person-art {
  height: clamp(70px, 12vh, 150px);
}
.pm-honourable figcaption {
  font-size: 0.8em;
}

/* ---------- Featured races: a wall of podiums ---------- */
.pm-races {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 22px) clamp(14px, 1.6vw, 26px);
  flex: 1;
  min-height: 0;
  align-content: stretch;
  padding: 0 10px 10px 4px;
}
.pm-race {
  position: relative;
  background: var(--pm-white);
  color: var(--pm-ink);
  padding: 10px 14px 12px;
  border: var(--pm-line) solid var(--pm-ink);
  box-shadow:
    inset 0 7px 0 var(--c, #b7aee0),
    var(--pm-drop) var(--pm-drop) 0 var(--pm-ink);
  transform: skew(-5deg);
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  animation: pm-pop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
.pm-race > * {
  transform: skew(5deg);
}
.pm-race:nth-child(2) {
  animation-delay: 0.05s;
}
.pm-race:nth-child(3) {
  animation-delay: 0.1s;
}
.pm-race:nth-child(4) {
  animation-delay: 0.15s;
}
.pm-race:nth-child(5) {
  animation-delay: 0.2s;
}
.pm-race:nth-child(6) {
  animation-delay: 0.25s;
}
.pm-race:nth-child(7) {
  animation-delay: 0.3s;
}
.pm-race:nth-child(8) {
  animation-delay: 0.35s;
}
.pm-race-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
  padding-top: 4px;
  z-index: 2;
}
.pm-race h3 {
  font-family: var(--pm-display);
  font-stretch: 75%;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 30px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--pm-ink);
  margin: 0;
}
.pm-race-top > span {
  flex-shrink: 0;
  font-size: clamp(8px, 0.62vw, 11px);
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border: 2px solid var(--pm-ink);
  background: var(--pm-white);
  color: var(--pm-ink);
}
.pm-race:has(.pm-race-person) .pm-race-top > span {
  background: var(--pm-cyan);
}
.pm-race[data-status="projected"] .pm-race-top > span {
  background: var(--pm-yellow);
}
.pm-race-person {
  min-height: 0;
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.pm-race .pm-person {
  animation: none;
}
.pm-race .pm-person-art {
  height: clamp(60px, 13vh, 170px);
}
.pm-race .pm-person figcaption {
  font-size: clamp(10px, 0.95vw, 17px);
  padding: 4px 8px 6px;
  box-shadow:
    inset 0 -4px 0 var(--c, #6b4cf0),
    3px 3px 0 var(--pm-ink);
}
.pm-race-person > span {
  font-size: clamp(8px, 0.65vw, 11px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 8px;
  color: #5b4e86;
}
.pm-wait {
  margin: auto 0;
  font-family: var(--pm-display);
  font-stretch: 75%;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(16px, 1.7vw, 30px);
  line-height: 1;
  color: #b8b0d6;
}
.pm-wait small {
  display: block;
  font-family: "Archivo", sans-serif;
  font-stretch: 100%;
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 8px;
  color: #8a7fb3;
}
.pm-race:not(:has(.pm-race-person)) {
  background:
    repeating-linear-gradient(-55deg, transparent 0 10px, #14072e0a 10px 20px),
    #f1eefb;
}

/* ---------- Moment cards (takeovers) ---------- */
.takeover .to-card.pm-moment::before {
  display: none;
}
.takeover .to-card.pm-moment {
  background:
    radial-gradient(ellipse 70% 55% at 50% 108%, #ff3e8a66, transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 55%, #12045299),
    repeating-conic-gradient(
      from 0deg at 50% 110%,
      #ffffff10 0deg 7deg,
      transparent 7deg 14deg
    ),
    var(--pm-stage);
  width: min(1440px, 94vw);
  max-height: 94dvh;
  overflow: auto;
  padding: clamp(24px, 2.6vw, 44px) clamp(22px, 3vw, 52px);
  border-radius: 0;
  border: 5px solid var(--pm-ink);
  box-shadow:
    inset 0 10px 0 var(--c, var(--pm-yellow)),
    16px 16px 0 var(--pm-pink),
    16px 16px 0 5px var(--pm-ink);
  color: var(--pm-white);
}
.takeover.in .to-card.pm-moment {
  animation: pm-slam 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.pm-moment-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 6px;
}
.pm-moment-label {
  font-size: clamp(10px, 1.1vw, 18px);
  font-weight: 800;
  font-style: italic;
  color: var(--pm-yellow);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pm-onair {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 900;
  color: var(--pm-white);
  padding: 5px 10px;
  border: 2px solid var(--pm-white);
}
.pm-onair::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pm-pink);
  animation: pm-blink 1s steps(2) infinite;
}
.pm-logo {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #fff;
  min-width: 80px;
  min-height: 46px;
  border: var(--pm-line) solid var(--pm-ink);
  box-shadow: 5px 5px 0 var(--pm-ink);
  transform: skew(-10deg) rotate(2deg);
  color: var(--pm-ink);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  max-width: 190px;
}
.pm-logo img {
  display: block;
  width: auto;
  max-width: 145px;
  height: 40px;
  object-fit: contain;
  transform: skew(10deg);
}
.pm-logo-NAT {
  background: #00549f;
}
.pm-logo-GRN {
  background: #155c36;
}
.pm-logo-TPM {
  background: #a51c30;
}
.pm-moment-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4%;
  align-items: center;
  padding: clamp(18px, 3vh, 40px) 0;
  min-height: 0;
}
.pm-moment-copy {
  position: relative;
  z-index: 2;
}
.pm-moment h2 {
  font-size: clamp(44px, 6.6vw, 128px);
  animation: pm-title 0.6s 0.15s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
.pm-moment-copy > p {
  font-size: clamp(15px, 1.45vw, 26px);
  line-height: 1.35;
  font-weight: 600;
  color: var(--pm-soft);
  max-width: 32em;
  margin: 22px 0 0;
}
.pm-moment-art {
  position: relative;
  min-width: 0;
  align-self: end;
}
.pm-moment-art .pm-person-art {
  height: clamp(170px, 40vh, 500px);
}
.pm-moment-art .pm-cast:has(> .pm-person:nth-child(3)) .pm-person-art {
  height: clamp(150px, 30vh, 360px);
}
.pm-moment-art .pm-cast:has(> .pm-person:nth-child(3)) figcaption {
  font-size: clamp(10px, 1vw, 18px);
}
.pm-moment-bottom {
  position: relative;
  z-index: 3;
  margin: 0 calc(clamp(22px, 3vw, 52px) * -1)
    calc(clamp(24px, 2.6vw, 44px) * -1);
  padding: 16px clamp(22px, 3vw, 52px) 22px;
  background: var(--pm-ink);
}
.pm-prompt {
  display: flex;
  align-items: center;
  gap: 22px;
}
.pm-prompt > span {
  display: inline-block;
  padding: 8px 14px 7px;
  background: var(--pm-pink);
  color: var(--pm-white);
  border: var(--pm-line) solid var(--pm-white);
  transform: rotate(-4deg) skew(-10deg);
  font-family: var(--pm-display);
  font-stretch: 78%;
  font-size: clamp(11px, 1.05vw, 18px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.06em;
  white-space: nowrap;
  animation: pm-wobble 1.6s ease-in-out infinite;
}
.pm-prompt > p {
  font-size: clamp(17px, 1.7vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: var(--pm-white);
}
.pm-moment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  color: #a99ad8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.pm-moment .to-timer {
  left: 0 !important;
  bottom: 0;
  right: 0;
  height: 7px !important;
  z-index: 6;
  background: var(--pm-ink);
}
.pm-moment .to-timer span {
  background: repeating-linear-gradient(
    -45deg,
    var(--pm-yellow) 0 10px,
    var(--pm-pink) 10px 20px
  );
}
.pm-moment .button {
  background: var(--pm-yellow);
  color: var(--pm-ink);
  border: 2px solid var(--pm-white);
  font-weight: 900;
  border-radius: 0;
  transform: skew(-10deg);
}

/* Census (ChrisWatch moment) */
.pm-layout-census .pm-moment-main {
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: 20px;
}
.pm-layout-census .pm-moment-copy {
  display: flex;
  align-items: end;
  gap: 30px;
}
.pm-layout-census h2 {
  font-size: clamp(36px, 5vw, 92px);
  max-width: 13ch;
}
.pm-layout-census .pm-moment-copy > p {
  margin: 0 0 4px;
  max-width: 24em;
}
.pm-layout-census .pm-moment-art .pm-person-art,
.pm-layout-census
  .pm-moment-art
  .pm-cast:has(> .pm-person:nth-child(3))
  .pm-person-art {
  height: clamp(110px, 27vh, 320px);
}

/* Threshold: they clear the line */
.pm-layout-threshold .pm-moment-art {
  padding-bottom: 105px;
}
.pm-layout-threshold .pm-person {
  animation: pm-clear-line 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pm-layout-threshold .pm-person figcaption {
  margin-right: 20%;
}
.pm-hurdle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 76%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--pm-yellow);
  color: var(--pm-ink);
  padding: 6px 20px;
  border: var(--pm-line) solid var(--pm-ink);
  transform: rotate(-5deg);
  box-shadow: 0 10px 0 var(--pm-ink);
  z-index: 4;
}
.pm-hurdle::before,
.pm-hurdle::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 10px;
  height: 36px;
  background: var(--pm-ink);
}
.pm-hurdle::before {
  left: 20px;
}
.pm-hurdle::after {
  right: 20px;
}
.pm-hurdle > b {
  font-family: var(--pm-display);
  font-stretch: 72%;
  font-style: italic;
  font-size: clamp(40px, 5vw, 84px);
  line-height: 1;
  font-weight: 900;
}
.pm-hurdle > span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

/* Headline-only moments */
.pm-big-mark {
  font-family: var(--pm-display);
  font-stretch: 72%;
  font-style: italic;
  font-size: clamp(80px, 12vw, 220px);
  line-height: 0.82;
  font-weight: 900;
  color: var(--pm-yellow);
  text-shadow:
    0.04em 0.04em 0 var(--pm-pink),
    0.08em 0.08em 0 var(--pm-ink);
  transform: rotate(-8deg);
  text-align: center;
  animation: pm-stamp 0.5s 0.3s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

/* Extra seat */
.pm-chair-scene {
  position: relative;
  padding-top: 60px;
  padding-bottom: 30px;
}
.pm-chair-number {
  position: absolute;
  right: 4%;
  top: 0;
  z-index: 2;
  font-family: var(--pm-display);
  font-stretch: 72%;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(80px, 11vw, 190px);
  color: var(--pm-yellow);
  text-shadow:
    0.04em 0.04em 0 var(--pm-pink),
    0.08em 0.08em 0 var(--pm-ink);
  line-height: 0.8;
  transform: rotate(-8deg);
  animation: pm-stamp 0.5s 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.pm-chair-row {
  display: flex;
  gap: 0;
  padding-top: 24px;
  align-items: end;
}
.pm-chair {
  width: 34%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 15px 10px #0004);
}
.pm-chair-back {
  fill: #1d5073;
  stroke: #71a7c4;
  stroke-width: 3;
}
.pm-chair-seat {
  fill: #397da0;
  stroke: #71a7c4;
  stroke-width: 3;
}
.pm-chair-leg {
  fill: none;
  stroke: #8cb3ce;
  stroke-width: 8;
}
.pm-chair-trim {
  fill: none;
  stroke: #8bc9ff;
  stroke-width: 2;
  opacity: 0.65;
}
.pm-chair-new {
  animation: pm-chair-arrive 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform: translateY(-12px) rotate(7deg);
}
.pm-chair-new .pm-chair-back {
  fill: #ddedf9;
  stroke: #fff;
}
.pm-chair-new .pm-chair-seat {
  fill: #fff;
  stroke: #c5dcec;
}
.pm-chair-new .pm-chair-leg {
  stroke: #e0eaf8;
}
.pm-chair-scene > .pm-scenery-stamp {
  position: absolute;
  left: 6%;
  bottom: 0;
}

/* ---------- Room page card and host toggle ---------- */
.pm-card {
  padding: 30px 32px 28px;
  margin: 24px 6px 30px 0;
  overflow: hidden;
  border: 4px solid var(--pm-ink);
  border-radius: 0;
  box-shadow:
    10px 10px 0 var(--pm-pink),
    10px 10px 0 4px var(--pm-ink);
}
.pm-card h2 {
  font-size: clamp(38px, 4.6vw, 70px);
  margin: 22px 0 18px;
}
.pm-card > p {
  line-height: 1.5;
  font-weight: 600;
  max-width: 700px;
  color: var(--pm-soft);
}
.pm-card-tags {
  margin: 18px 0 6px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.pm-card-tags span {
  font-size: 12px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.05em;
  background: var(--pm-white);
  color: var(--pm-ink);
  border: 2px solid var(--pm-ink);
  box-shadow: 3px 3px 0 var(--pm-ink);
  padding: 6px 12px;
  transform: skew(-10deg);
}
.pm-card-tags span:nth-child(2) {
  background: var(--pm-yellow);
}
.pm-card-tags span:nth-child(3) {
  background: var(--pm-pink);
  color: var(--pm-white);
}
.pm-card-note {
  font-size: 13px;
}
.pm-card details {
  border-top: 2px solid #ffffff40;
  padding-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--pm-soft);
}
.pm-card summary {
  cursor: pointer;
  color: var(--pm-yellow);
  font-weight: 800;
}
.pm-card a {
  color: var(--pm-yellow);
  text-decoration: underline;
}
.pm-host {
  border: 3px solid #3613c9 !important;
  box-shadow: 5px 5px 0 #3613c9;
  padding: 20px !important;
}
.pm-host-toggle {
  display: flex;
  align-items: start;
  gap: 14px;
  cursor: pointer;
}
.pm-host-toggle input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: #3613c9;
}
.pm-host-toggle strong,
.pm-host-toggle small {
  display: block;
}
.pm-host-toggle small {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
}

/* ---------- Motion ---------- */
@keyframes pm-spin {
  to {
    rotate: 360deg;
  }
}
@keyframes pm-chase {
  to {
    background-position:
      12px 0,
      -12px 100%;
  }
}
@keyframes pm-blink {
  50% {
    opacity: 0.2;
  }
}
@keyframes pm-wobble {
  0%,
  100% {
    rotate: 0deg;
  }
  50% {
    rotate: 3deg;
  }
}
@keyframes pm-enter {
  from {
    opacity: 0;
    translate: 0 32px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes pm-pop {
  from {
    opacity: 0;
    translate: 0 40px;
    scale: 0.85;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes pm-slam {
  from {
    opacity: 0;
    scale: 1.25;
    rotate: -4deg;
  }
  60% {
    opacity: 1;
  }
  to {
    opacity: 1;
    scale: 1;
    rotate: 0deg;
  }
}
@keyframes pm-title {
  from {
    opacity: 0;
    translate: -60px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes pm-stamp {
  from {
    opacity: 0;
    scale: 2.2;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
@keyframes pm-chair-arrive {
  from {
    opacity: 0;
    translate: 120px 0;
    rotate: 18deg;
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
  }
}
@keyframes pm-clear-line {
  0% {
    opacity: 0;
    translate: 45px 50px;
  }
  55% {
    opacity: 1;
    translate: 0 -18px;
  }
  100% {
    translate: 0 0;
  }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  .pm-stage {
    padding: 18px;
    gap: 12px;
  }
  .pm-bottom {
    margin: auto -18px -18px;
    padding: 10px 18px 14px;
  }
  .pm-races {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }
  .pm-race {
    padding: 8px 10px 10px;
  }
  .pm-race .pm-person-art {
    height: 8vh;
  }
  .pm-race h3 {
    font-size: 16px;
  }
  .pm-rules-layout {
    gap: 16px;
  }
  .pm-rules-visual .pm-person figcaption {
    font-size: 10px;
  }
  .pm-rules-visual .pm-person-art {
    height: 18vh;
  }
  .pm-stage h2 {
    font-size: clamp(36px, 7vw, 60px);
  }
  .pm-chris .pm-person-art {
    height: 25vh;
  }
  .pm-cast {
    gap: 10px;
  }
  .pm-moment-top {
    gap: 12px;
  }
  .pm-logo {
    padding: 6px 8px;
    min-width: 60px;
    max-width: 120px;
  }
  .pm-logo img {
    max-width: 100px;
    height: 30px;
  }
  .pm-moment-label {
    font-size: 10px;
  }
  .pm-moment h2 {
    font-size: clamp(38px, 6.6vw, 70px);
  }
  .pm-moment-art .pm-person-art {
    height: 30vh;
  }
  .pm-onair {
    display: none;
  }
  .pm-prompt {
    gap: 15px;
  }
  .pm-prompt > p {
    font-size: 18px;
  }
}
@media (max-width: 600px) {
  .pm-stage,
  .pm-moment,
  .pm-card {
    --pm-drop: 4px;
  }
  .pm-mast {
    font-size: 9px;
  }
  .pm-slug {
    font-size: 10px;
    padding: 5px 9px;
  }
  .pm-rules-layout {
    grid-template-columns: 1fr;
  }
  .pm-rules-layout > div > p {
    font-size: 13px;
    margin: 14px 0 0;
  }
  .pm-rules-visual .pm-person-art {
    height: 16vh;
  }
  .pm-rules-visual {
    padding-bottom: 25px;
  }
  .pm-rule-strip {
    gap: 8px;
    font-size: 11px;
  }
  .pm-rule-strip > span {
    flex-direction: column;
    align-items: start;
    gap: 2px;
    padding: 6px 8px;
  }
  .pm-bottom {
    font-size: 9px;
  }
  .pm-bottom strong {
    display: none;
  }
  .pm-heading > span {
    display: none;
  }
  .pm-heading {
    gap: 12px;
  }
  .pm-census {
    gap: 8px;
  }
  .pm-census > b {
    font-size: 68px;
  }
  .pm-census > span {
    font-size: 9px;
  }
  /* The cameo takes its own row so the census count keeps its room. */
  .pm-heading:has(.pm-honourable) {
    flex-wrap: wrap;
  }
  .pm-honourable {
    order: 3;
    flex: 1 0 100%;
    flex-direction: row;
    margin-left: 0;
    transform: none;
  }
  .pm-chris .pm-honourable .pm-person-art {
    height: 9vh;
  }
  .pm-honourable .pm-person {
    flex: 1;
  }
  .pm-chris .pm-cast {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    gap: 10px;
  }
  .pm-chris .pm-person-art {
    height: 14vh;
  }
  .pm-person figcaption {
    font-size: 12px;
    padding: 5px 7px 7px;
  }
  .pm-person figcaption small {
    font-size: 8px;
  }
  .takeover .to-card.pm-moment {
    max-height: 94dvh;
    padding: 18px 18px;
    width: 94vw;
    box-shadow:
      inset 0 8px 0 var(--c, var(--pm-yellow)),
      8px 8px 0 var(--pm-pink),
      8px 8px 0 4px var(--pm-ink);
  }
  .pm-moment-bottom {
    margin: 0 -18px -18px;
    padding: 14px 18px 18px;
  }
  .pm-moment-main {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 0;
  }
  .pm-moment h2 {
    font-size: 44px;
    max-width: 14ch;
  }
  .pm-moment-copy > p {
    font-size: 14px;
    margin-top: 12px;
  }
  .pm-moment-art .pm-person-art {
    height: 23vh;
    min-height: 130px;
  }
  .pm-moment-art .pm-cast {
    max-width: 360px;
    margin: 0 auto;
  }
  .pm-moment-art .pm-person figcaption {
    font-size: 13px;
  }
  .pm-moment-top {
    flex-wrap: wrap;
    gap: 8px;
  }
  .pm-moment-label {
    flex: 1;
    min-width: 100px;
    font-size: 9px;
  }
  .pm-logo {
    min-height: 32px;
    min-width: 55px;
    max-width: 90px;
  }
  .pm-logo img {
    max-width: 70px;
    height: 24px;
  }
  .pm-prompt {
    gap: 12px;
    align-items: start;
  }
  .pm-prompt > span {
    font-size: 10px;
    padding: 6px 8px;
  }
  .pm-prompt > p {
    font-size: 15px;
  }
  .pm-moment-meta {
    font-size: 8px;
    margin-top: 12px;
  }
  .pm-layout-census .pm-moment-copy {
    display: block;
  }
  .pm-layout-census .pm-moment-copy > p {
    margin-top: 12px;
  }
  .pm-layout-census .pm-cast {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .pm-layout-census
    .pm-moment-art
    .pm-cast:has(> .pm-person:nth-child(3))
    .pm-person-art {
    height: 12vh;
    min-height: 85px;
  }
  .pm-layout-census .pm-moment-art .pm-person figcaption {
    font-size: 11px;
  }
  .pm-layout-census .pm-moment-main {
    gap: 12px;
    padding: 16px 0;
  }
  .pm-layout-census h2 {
    font-size: 36px;
    max-width: none;
  }
  .pm-layout-threshold .pm-moment-art {
    padding-bottom: 64px;
  }
  .pm-hurdle {
    width: 62%;
    padding: 5px 12px;
  }
  .pm-hurdle > b {
    font-size: 36px;
  }
  .pm-hurdle > span {
    font-size: 9px;
  }
  .pm-hurdle::before,
  .pm-hurdle::after {
    height: 22px;
  }
  .pm-chair-scene {
    max-width: 320px;
    margin: auto;
    padding: 20px 0;
  }
  .pm-chair-row {
    padding-top: 0;
  }
  .pm-chair {
    max-height: 170px;
  }
  .pm-chair-number {
    font-size: 80px;
    top: 0;
  }
  .pm-chair-scene > .pm-scenery-stamp {
    font-size: 13px;
  }
  .pm-big-mark {
    font-size: 84px;
  }
  .pm-card {
    padding: 22px 20px;
    margin-right: 4px;
    box-shadow:
      6px 6px 0 var(--pm-pink),
      6px 6px 0 3px var(--pm-ink);
  }
}

/* ---------- Bespoke cutouts ---------- */
.pm-chair-art {
  display: block;
  width: 88%;
  height: clamp(230px, 42vh, 500px);
  object-fit: contain;
  margin: auto;
  filter: drop-shadow(10px 10px 0 var(--pm-ink));
  animation: pm-chair-arrive 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pm-character-scene {
  position: relative;
  padding-bottom: 65px;
}
.pm-character-art {
  display: block;
  width: 100%;
  height: clamp(250px, 46vh, 550px);
  object-fit: contain;
  animation: pm-pop 0.6s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
.pm-character-scene .pm-scenery-stamp {
  position: absolute;
  bottom: 30px;
  left: 4%;
  font-size: clamp(16px, 2vw, 30px);
}
.pm-art-caption {
  position: absolute;
  bottom: 0;
  left: 4%;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--pm-soft);
}
@media (max-width: 600px) {
  .pm-chair-art {
    height: 240px;
  }
  .pm-character-art {
    height: 280px;
  }
  .pm-art-caption {
    font-size: 8px;
  }
}

/* ---------- The Really, Really Well Awards ---------- */
/* Helen is the presenter, not the recipient. */
.takeover .to-card.pm-moment.pm-award {
  --c: var(--pm-yellow);
  background:
    radial-gradient(ellipse 45% 70% at 25% 40%, #ffd23f40, transparent 70%),
    radial-gradient(ellipse 70% 55% at 50% 108%, #ff3e8a66, transparent 70%),
    repeating-conic-gradient(
      from 0deg at 50% 110%,
      #ffffff10 0deg 7deg,
      transparent 7deg 14deg
    ),
    var(--pm-stage);
}
.pm-award-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  margin: 26px 0;
  align-items: center;
}
.pm-award-art {
  position: relative;
  min-width: 0;
}
.pm-award-art > img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border: 4px solid var(--pm-ink);
  box-shadow:
    10px 10px 0 var(--pm-yellow),
    10px 10px 0 4px var(--pm-ink);
  transform: rotate(-2deg);
}
.pm-presenter {
  margin-top: -14px;
  position: relative;
  z-index: 2;
  font-size: 14px;
}
.pm-presser-link {
  display: block;
  color: var(--pm-yellow);
  font-weight: 700;
  margin: 20px 0 8px;
  font-size: 15px;
  text-decoration: underline;
}
.pm-award-art > small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pm-soft);
}
.pm-award blockquote {
  margin: 0;
}
.pm-quote {
  font-family: var(--pm-display);
  font-stretch: 78%;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(26px, 2.9vw, 50px);
  font-weight: 900;
  line-height: 0.98;
  margin: 0 0 14px;
}
.pm-quote.pm-beat-2 {
  color: var(--pm-yellow);
  font-size: clamp(32px, 3.6vw, 62px);
  text-shadow: 0.05em 0.05em 0 var(--pm-pink);
}
.pm-quote.pm-beat-3 {
  font-size: clamp(19px, 1.7vw, 29px);
}
.pm-award cite {
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pm-soft);
}
.pm-award-stats {
  margin-top: 22px;
  padding: 16px 20px 18px;
  background: var(--pm-white);
  color: var(--pm-ink);
  border: var(--pm-line) solid var(--pm-ink);
  box-shadow: var(--pm-drop) var(--pm-drop) 0 var(--pm-ink);
  transform: skew(-4deg);
}
.pm-award-stats > * {
  transform: skew(4deg);
}
.pm-award-stats > span {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: var(--pm-ink);
  color: var(--pm-yellow);
  padding: 3px 8px;
}
.pm-award-stats h3 {
  font-family: var(--pm-display);
  font-stretch: 78%;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--pm-ink);
  margin: 8px 0 4px;
  font-size: clamp(22px, 2.1vw, 36px);
  line-height: 1;
}
.pm-award-drop {
  font-family: var(--pm-display);
  font-stretch: 72%;
  font-style: italic;
  font-size: clamp(56px, 6vw, 100px);
  font-weight: 900;
  line-height: 0.95;
  color: var(--pm-pink);
}
.pm-award-drop small {
  font-family: "Archivo", sans-serif;
  font-stretch: 100%;
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pm-ink);
  margin-left: 12px;
}
.pm-award-stats p {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--pm-ink);
}
.pm-award-stats .pm-award-context {
  font-size: 13px;
  font-weight: 600;
  color: #5b4e86;
}
.pm-beat-2 {
  animation: pm-award-reveal 0.5s 3s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
.pm-beat-3 {
  animation: pm-award-reveal 0.5s 6s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
.pm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@keyframes pm-award-reveal {
  from {
    opacity: 0;
    scale: 0.7;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
@media (max-width: 700px) {
  .pm-award-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 20px 0;
  }
  .pm-award-art > img {
    max-height: 260px;
  }
  .pm-award .pm-moment-top {
    flex-wrap: wrap;
  }
  .pm-award .pm-slug {
    font-size: 11px;
  }
  .pm-award-drop {
    font-size: 60px;
  }
}

/* ---------- Reduced motion: a still set ---------- */
@media (prefers-reduced-motion: reduce) {
  .pm-stage::before,
  .pm-stage::after,
  .pm-card::before,
  .takeover .to-card.pm-moment::before,
  .takeover .to-card.pm-moment::after,
  .pm-onair::before,
  .pm-scenery-stamp,
  .pm-prompt > span,
  .pm-person,
  .pm-race,
  .pm-moment h2,
  .pm-big-mark,
  .pm-chair-number,
  .pm-chair-new,
  .pm-chair-art,
  .pm-character-art,
  .pm-layout-threshold .pm-person,
  .pm-award .pm-beat-2,
  .pm-award .pm-beat-3,
  .takeover.in .to-card.pm-moment {
    animation: none !important;
  }
  .pm-moment .to-timer span {
    animation: none !important;
  }
  .takeover .to-card.pm-moment {
    transition: none;
  }
}

/* The insiders' twist: "I" became "You". */
.pm-you {
  display: inline-block;
  padding: 0 0.12em;
  margin-right: 0.04em;
  background: var(--pm-pink);
  color: var(--pm-white);
  text-shadow: none;
  border: 3px solid var(--pm-ink);
  box-shadow: 4px 4px 0 var(--pm-ink);
  transform: rotate(-4deg);
}

/* ---------- The whole TV wall as the set ---------- */
/* Data scenes keep their own light surface, framed as monitors on the set,
   so party colours stay legible. Party scenes sit straight on the set. */
.wall.pm-on {
  --pm-stage: #3613c9;
  --pm-ink: #14072e;
  --pm-yellow: #ffd23f;
  --pm-pink: #ff3e8a;
  --pm-soft: #ddd4ff;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 50% 108%, #ff3e8a66, transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 55%, #12045299),
    var(--pm-stage);
}
.wall.pm-on::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 100%;
  width: 260vmax;
  height: 260vmax;
  margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(
    from 0deg,
    #ffffff10 0deg 7deg,
    transparent 7deg 14deg
  );
  animation: pm-spin 140s linear infinite;
  pointer-events: none;
}
/* Bar and ticker read their tokens from here, so app markup stays as is. */
.wall.pm-on .w-top,
.wall.pm-on .w-foot {
  --ink: #ffffff;
  --body: #ffffff;
  --muted: var(--pm-soft);
  --line: #ffffff30;
  --line-strong: #ffffff55;
  --surface-3: var(--pm-yellow);
  color: #fff;
}
.wall.pm-on .w-top {
  background: var(--pm-ink);
  box-shadow: inset 0 -4px 0 var(--pm-pink);
}
.wall.pm-on .w-brand {
  font-family: "Archivo", sans-serif;
  font-stretch: 78%;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: calc(var(--u) * 1.8);
  letter-spacing: 0.01em;
}
.wall.pm-on .w-brand .brand-mark {
  background: var(--pm-yellow);
  transform: skew(-10deg);
}
.wall.pm-on .w-brand .brand-mark i {
  background: var(--pm-ink);
}
.wall.pm-on .w-clock {
  font-family: "Archivo", sans-serif;
  font-stretch: 75%;
  font-weight: 900;
  font-style: italic;
  font-size: calc(var(--u) * 2.4);
  color: var(--pm-yellow);
}
.wall.pm-on .w-next > span:first-child {
  color: var(--pm-yellow);
}
.wall.pm-on .w-progress {
  background: var(--pm-ink);
}
.wall.pm-on .w-progress span {
  background: repeating-linear-gradient(
    -45deg,
    var(--pm-yellow) 0 10px,
    var(--pm-pink) 10px 20px
  );
}
.wall.pm-on .w-stage {
  padding: calc(var(--u) * 1.6) calc(var(--u) * 3) calc(var(--u) * 2.2)
    calc(var(--u) * 2.6);
}
.wall.pm-on
  .w-scene:not(
    [data-scene="party"],
    [data-scene="hot-races"],
    [data-scene="chriswatch"]
  ) {
  box-sizing: border-box;
  overflow: hidden;
  background: var(--surface);
  border: calc(var(--u) * 0.35) solid var(--pm-ink);
  box-shadow:
    calc(var(--u) * 0.9) calc(var(--u) * 0.9) 0 var(--pm-pink),
    calc(var(--u) * 0.9) calc(var(--u) * 0.9) 0 calc(var(--u) * 0.35)
      var(--pm-ink);
  padding: calc(var(--u) * 1.6) calc(var(--u) * 2.2);
}
.wall.pm-on .w-headline,
.wall.pm-on .w-title {
  font-family: "Archivo", sans-serif;
  font-stretch: 74%;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.92;
}
.wall.pm-on .w-headline {
  font-size: calc(var(--u) * 3.7);
}
.wall.pm-on .w-kicker {
  display: inline-block;
  align-self: start;
  background: var(--pm-yellow);
  color: var(--pm-ink);
  padding: calc(var(--u) * 0.3) calc(var(--u) * 0.8);
  transform: skew(-10deg);
  font-style: italic;
  font-weight: 900;
}
/* Party scenes: no second set inside the set. */
.wall.pm-on .pm-stage {
  background: transparent;
  padding: 0;
}
.wall.pm-on .pm-stage::before,
.wall.pm-on .pm-stage::after {
  display: none;
}
.wall.pm-on .pm-bottom {
  margin: auto 0 0;
  padding: calc(var(--u) * 1) calc(var(--u) * 1.6);
  border: 3px solid var(--pm-ink);
  box-shadow: 6px 6px 0 var(--pm-ink);
  transform: skew(-6deg);
}
.wall.pm-on .pm-bottom > * {
  transform: skew(6deg);
}
.wall.pm-on .w-foot {
  border-top: 0;
  background: var(--pm-ink);
  box-shadow: inset 0 4px 0 var(--pm-yellow);
}
.wall.pm-on .w-ticker-label {
  color: var(--pm-ink);
  border-radius: 0;
  transform: skew(-10deg);
  font-style: italic;
  font-weight: 900;
}
.wall.pm-on .w-dots i.on {
  background: var(--pm-yellow);
}
.wall.pm-on .w-scene.enter {
  animation: pm-scene-in 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}
@keyframes pm-scene-in {
  from {
    opacity: 0;
    translate: 8% 0;
    transform: skew(-8deg);
  }
  to {
    opacity: 1;
    translate: 0 0;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wall.pm-on::before,
  .wall.pm-on .w-scene.enter {
    animation: none !important;
  }
}

/* On the wall, party scenes size in the wall's own unit (--u), like every
   other scene, so a wide or short screen does not crowd them. */
.wall .pm-stage {
  gap: calc(var(--u) * 1.4);
}
.wall .pm-stage h2 {
  font-size: calc(var(--u) * 5.8);
}
.wall .pm-heading h2 {
  font-size: calc(var(--u) * 4.8);
}
.wall .pm-mast,
.wall .pm-bottom {
  font-size: calc(var(--u) * 1);
}
.wall .pm-slug {
  font-size: calc(var(--u) * 1.05);
}
.wall .pm-rules-layout > div > p {
  font-size: calc(var(--u) * 1.5);
  margin-top: calc(var(--u) * 1.6);
}
.wall .pm-rules-visual .pm-person-art {
  height: calc(var(--u) * 19);
}
.wall .pm-scenery-stamp {
  font-size: calc(var(--u) * 1.9);
}
.wall .pm-rule-strip {
  font-size: calc(var(--u) * 1.35);
}
.wall .pm-big-mark {
  font-size: calc(var(--u) * 11);
}
.wall .pm-census > b {
  font-size: calc(var(--u) * 8);
}
.wall .pm-chris .pm-person-art {
  height: calc(var(--u) * 21);
}
.wall .pm-chris .pm-honourable .pm-person-art {
  height: calc(var(--u) * 8);
}
.wall .pm-person figcaption {
  font-size: calc(var(--u) * 1.45);
}
.wall .pm-race h3 {
  font-size: calc(var(--u) * 1.7);
}
.wall .pm-race .pm-person-art {
  height: calc(var(--u) * 9);
}
.wall .pm-race .pm-person figcaption {
  font-size: calc(var(--u) * 1);
}
.wall .pm-wait {
  font-size: calc(var(--u) * 1.8);
}
/* No portrait: initials sit inside the backdrop, never over the card. */
.pm-race .pm-person-fallback {
  font-size: clamp(22px, 2.6vw, 46px);
  padding-bottom: 12%;
}
.wall .pm-race .pm-person-fallback {
  font-size: calc(var(--u) * 2.6);
}
.wall.pm-on .w-brand {
  white-space: nowrap;
}
.pm-race .pm-person-fallback,
.wall .pm-race .pm-person-fallback {
  padding-bottom: 0.25em;
}
.wall.pm-on .w-status {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Race cards: the portrait takes whatever height is left, never more. */
.pm-race .pm-person {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pm-race .pm-person-art,
.wall .pm-race .pm-person-art {
  flex: 1;
  height: auto;
  min-height: 0;
  max-height: calc(var(--u, 1vh) * 12);
}

/* ---------- The way in ---------- */
.pm-entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 20px;
}
.pm-entry-top {
  float: right;
  margin: 0 0 12px 16px;
}
.pm-go {
  min-height: 48px;
  padding: 10px 22px;
  border: 3px solid var(--pm-ink);
  border-radius: 0;
  background: var(--pm-yellow);
  color: var(--pm-ink);
  box-shadow: 5px 5px 0 var(--pm-ink);
  transform: skew(-10deg);
  font-family: var(--pm-display);
  font-stretch: 78%;
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.pm-go:hover {
  transform: skew(-10deg) translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--pm-ink);
}
.pm-go:active {
  transform: skew(-10deg) translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--pm-ink);
}
.pm-go:focus-visible,
.pm-quiet:focus-visible {
  outline: 3px solid var(--pm-white);
  outline-offset: 4px;
}
.pm-go:disabled {
  opacity: 0.6;
  cursor: progress;
}
.pm-quiet {
  min-height: 44px;
  padding: 8px 6px;
  background: none;
  border: 0;
  color: var(--pm-soft);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.pm-entry h2 {
  margin-top: 18px;
}
@media (max-width: 600px) {
  .pm-entry-top {
    float: none;
    margin: 14px 0 0;
  }
  .pm-go {
    font-size: 17px;
  }
}

/* Six registered expression frames; each dissolve is 150ms. */
.pm-portrait-stack {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
  animation:
    pm-portrait-bob 5.8s ease-in-out 700ms infinite,
    pm-portrait-rim 4s ease-in-out 700ms infinite;
}
.pm-frame,
.pm-frame-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.pm-frame-fallback {
  display: flex;
  align-items: end;
  justify-content: center;
}
.pm-frame-base {
  z-index: 1;
}
.pm-frame-target {
  z-index: 2;
  opacity: 0;
}
.pm-target-loaded .pm-frame-base {
  animation: pm-expression-out 150ms both;
}
.pm-target-loaded .pm-frame-target {
  animation: pm-expression-in 150ms both;
}
.pm-illustrated {
  animation: pm-portrait-reveal 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pm-illustrated .pm-person-art::after {
  content: "";
  position: absolute;
  inset: 8% 1% 0;
  background: white;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  animation: pm-portrait-flash 280ms 60ms both;
}
.pm-portrait-shine {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 38%,
    #ffffff70 48%,
    transparent 58%
  );
  background-size: 300% 100%;
  mask-image: var(--pm-mask);
  mask-size: contain;
  mask-position: center bottom;
  mask-repeat: no-repeat;
  -webkit-mask-image: var(--pm-mask);
  -webkit-mask-size: contain;
  -webkit-mask-position: center bottom;
  -webkit-mask-repeat: no-repeat;
  animation: pm-portrait-shine 7s 1.5s infinite;
  opacity: 0;
}
.pm-portrait-burst {
  position: absolute;
  inset: 4% -3% 15%;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  background:
    radial-gradient(circle at 7% 20%, var(--pm-yellow) 0 4px, transparent 5px),
    radial-gradient(circle at 89% 15%, var(--pm-pink) 0 5px, transparent 6px),
    radial-gradient(circle at 13% 65%, white 0 3px, transparent 4px),
    radial-gradient(circle at 95% 60%, var(--pm-yellow) 0 4px, transparent 5px),
    radial-gradient(circle at 35% 5%, var(--pm-pink) 0 4px, transparent 5px),
    radial-gradient(circle at 68% 9%, white 0 3px, transparent 4px);
  animation: pm-portrait-confetti 650ms 80ms both;
}
.pm-out .pm-portrait-stack {
  animation: pm-portrait-drain 900ms 300ms both;
}
.pm-out .pm-portrait-shine {
  display: none;
}
@keyframes pm-expression-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pm-expression-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes pm-portrait-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.2%);
  }
}
@keyframes pm-portrait-rim {
  0%,
  100% {
    filter: drop-shadow(0 0 2px var(--c));
  }
  50% {
    filter: drop-shadow(0 0 7px var(--c));
  }
}
@keyframes pm-portrait-reveal {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1.04) rotate(-1deg);
  }
  55% {
    transform: scale(1.01) rotate(1deg);
  }
  70% {
    transform: scale(1) rotate(-0.5deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes pm-portrait-flash {
  0%,
  100% {
    opacity: 0;
  }
  25% {
    opacity: 0.75;
  }
}
@keyframes pm-portrait-confetti {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.12) translateY(10px);
  }
}
@keyframes pm-portrait-shine {
  0%,
  70%,
  100% {
    opacity: 0;
    background-position: 100% 0;
  }
  75% {
    opacity: 0.65;
  }
  90% {
    opacity: 0;
    background-position: 0 0;
  }
}
@keyframes pm-portrait-drain {
  from {
    filter: grayscale(0);
    opacity: 1;
  }
  to {
    filter: grayscale(1);
    opacity: 0.65;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pm-illustrated,
  .pm-portrait-stack,
  .pm-frame,
  .pm-portrait-shine,
  .pm-portrait-burst,
  .pm-illustrated .pm-person-art::after {
    animation: none !important;
    transform: none !important;
  }
  .pm-target-loaded .pm-frame-target {
    opacity: 1;
  }
  .pm-target-loaded .pm-frame-base {
    opacity: 0;
  }
  .pm-portrait-shine,
  .pm-portrait-burst,
  .pm-illustrated .pm-person-art::after {
    display: none;
  }
  .pm-out .pm-portrait-stack {
    filter: grayscale(1);
    opacity: 0.65;
  }
}
/* Transparent illustrated silhouettes must not expose a differently posed avatar. */
.pm-frames-loaded .pm-frame-fallback {
  visibility: hidden;
}

/* ---------- The way in: header switch and hero button ---------- */
.party-toggle.on,
.pm-hero-button.on {
  background: #3613c9;
  border-color: #3613c9;
  color: #ffffff;
}
.party-toggle.on:hover,
.pm-hero-button.on:hover {
  background: #2b0ca6;
  border-color: #2b0ca6;
  color: #ffffff;
}
/* The label only where the header has room; the hero button carries the words. */
@media (max-width: 1480px) {
  .party-toggle span {
    display: none;
  }
  .party-toggle {
    padding: 0 9px;
  }
}
