/* PinPonder Party — navy arcade interface for guest rooms, on the Destination Earth theme.
 *
 * One stylesheet for the whole multiplayer client: entry, lobby, live match, reveal and final standings.
 * Direction: navy ground and panels, crisp 1px hairlines, a white-on-blue primary action, the coral
 * red-pin colour for the last ten seconds and every true alert, and green for answers, rewards and
 * scores. Heavy display type with slightly negative tracking and tabular numerals so clocks and scores
 * do not jitter. No neon, no invented illustrations: the only backdrop photograph is the real gameplay
 * capture the site already ships. Everything respects prefers-reduced-motion.
 */

:root {
  color-scheme: dark;
  --pp-ink: #101c34; /* ground */
  --pp-ink-deep: #0b1427; /* deeper ground */
  /* The flat surface the opaque brand lockup sits on: the artwork's own background navy, so the
   * brand bars and the match HUD show no contrasting rectangle around the logo. */
  --pp-brand-surface: #0c1e3c;
  --pp-surface: #172b49; /* panel */
  --pp-surface-2: #1d3556; /* raised panel */
  --pp-surface-3: #24406b; /* raised panel, hovered */
  --pp-line: rgba(102, 135, 178, 0.34); /* hairline */
  --pp-line-strong: rgba(102, 135, 178, 0.6); /* panel and control edges */
  --pp-text: #f7faff;
  --pp-muted: #b7c9e2;
  --pp-primary: #2363d7; /* primary action fill; always paired with --pp-on-primary */
  --pp-primary-deep: #1e56bc;
  --pp-on-primary: #ffffff;
  --pp-accent: #87bdff; /* links, hovers, selection, the round in play */
  --pp-success: #78dda5; /* answers, scores, rewards, locked-in state */
  --pp-warning: #ffd38a; /* thirty-second warning, accompanied by a text cue */
  --pp-alert: #ff7d87; /* urgency, errors, forfeits: the red-pin family */
  --pp-alert-text: #ffd9dd; /* the same alert as readable copy on navy */
  --pp-font:
    Inter, 'Segoe UI', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --pp-radius-sm: 14px;
  --pp-radius: 18px;
  --pp-radius-lg: 24px;
  --pp-control: 48px;
  --pp-shadow: 0 22px 48px -24px rgba(2, 8, 20, 0.85), 0 2px 0 rgba(247, 250, 255, 0.05) inset;
  --pp-shadow-soft: 0 12px 30px -18px rgba(2, 8, 20, 0.7);
  --pp-focus: #a8d5ff;
  --pp-motion: 200ms;
  --pp-motion-fast: 140ms;
  --pp-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --pp-ring: 326.7; /* 2πr for r=52 in the 120×120 rings */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.pp {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(120, 221, 165, 0.09), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(35, 99, 215, 0.18), transparent 55%),
    linear-gradient(180deg, var(--pp-ink) 0%, var(--pp-ink-deep) 55%, #0b1427 100%);
  color: var(--pp-text);
  font-family: var(--pp-font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

body.pp[data-view='match'],
body.pp[data-view='reveal'] {
  overflow: hidden;
  height: 100dvh;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 760;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--pp-accent);
  text-decoration-color: rgba(135, 189, 255, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--pp-focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.pp-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.pp-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Screen-reader-only text: the live regions announce without ever taking part in the layout, whether they
   currently hold a message or not. */
.pp-visually-hidden,
.pp-live,
.pp-skip:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pp-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 90;
  padding: 12px 18px;
  border-radius: var(--pp-radius-sm);
  background: var(--pp-primary);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.pp-noscript,
.pp-boot-error {
  position: relative;
  z-index: 80;
  margin: 0;
  padding: 20px clamp(16px, 4vw, 32px);
  background: rgba(255, 125, 135, 0.14);
  border-bottom: 1px solid var(--pp-line-strong);
}

.pp-boot-error {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 28, 52, 0.94);
  border: 0;
}

.pp-boot-error__card {
  width: min(520px, 90vw);
  padding: 28px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius-lg);
  background: var(--pp-surface);
  box-shadow: var(--pp-shadow);
}

.pp-boot-error__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pp-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) clamp(16px, 4vw, 32px) 40px;
}

/* ---------------------------------------------------------------- controls */

.pp-button {
  --pp-button-bg: var(--pp-surface-2);
  --pp-button-fg: var(--pp-text);
  --pp-button-border: var(--pp-line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--pp-control);
  padding: 12px 20px;
  border: 1px solid var(--pp-button-border);
  border-radius: var(--pp-radius-sm);
  background: var(--pp-button-bg);
  color: var(--pp-button-fg);
  font-size: 15px;
  font-weight: 660;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--pp-motion-fast) var(--pp-ease),
    background-color var(--pp-motion-fast) var(--pp-ease),
    border-color var(--pp-motion-fast) var(--pp-ease),
    box-shadow var(--pp-motion-fast) var(--pp-ease);
}

.pp-button:hover:not(:disabled, [aria-disabled='true']) {
  transform: translateY(-1px);
  box-shadow: var(--pp-shadow-soft);
}

.pp-button:active:not(:disabled) {
  transform: translateY(0);
}

.pp-button:disabled,
.pp-button[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.pp-button--primary {
  --pp-button-bg: linear-gradient(180deg, #2b70df, var(--pp-primary));
  --pp-button-fg: var(--pp-on-primary);
  --pp-button-border: rgba(247, 250, 255, 0.4);
  font-weight: 760;
}

.pp-button--primary:hover:not(:disabled) {
  --pp-button-bg: linear-gradient(180deg, #3380e8, var(--pp-primary-deep));
}

.pp-button--quiet {
  --pp-button-bg: rgba(23, 43, 73, 0.72);
}

.pp-button--quiet:hover:not(:disabled) {
  --pp-button-bg: rgba(29, 53, 86, 0.9);
}

.pp-button--danger {
  --pp-button-bg: rgba(255, 125, 135, 0.16);
  --pp-button-fg: #ffd9dd;
  --pp-button-border: rgba(255, 125, 135, 0.5);
}

.pp-button--wide {
  width: 100%;
}

.pp-button[aria-busy='true'] {
  cursor: progress;
  opacity: 0.75;
}

.pp-iconbtn {
  display: inline-grid;
  place-items: center;
  width: var(--pp-control);
  height: var(--pp-control);
  min-width: var(--pp-control);
  min-height: var(--pp-control);
  padding: 0;
  border: 1px solid var(--pp-line-strong);
  border-radius: var(--pp-radius-sm);
  background: rgba(23, 43, 73, 0.78);
  color: var(--pp-text);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--pp-motion-fast) var(--pp-ease),
    transform var(--pp-motion-fast) var(--pp-ease);
}

.pp-iconbtn:hover {
  background: var(--pp-surface-3);
  transform: translateY(-1px);
}

.pp-iconbtn--tiny {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 12px;
  background: rgba(16, 28, 52, 0.82);
}

.pp-card {
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius-lg);
  background: linear-gradient(180deg, rgba(23, 43, 73, 0.96), rgba(19, 36, 62, 0.96));
  box-shadow: var(--pp-shadow);
  padding: clamp(20px, 3vw, 30px);
}

.pp-eyebrow {
  margin-bottom: 10px;
  color: var(--pp-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pp-note {
  margin-top: 14px;
  color: var(--pp-muted);
  font-size: 13px;
  line-height: 1.6;
}

.pp-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  max-width: min(440px, 90vw);
  margin: 0;
  padding: 12px 18px;
  border: 1px solid var(--pp-line-strong);
  border-radius: 999px;
  background: rgba(16, 28, 52, 0.94);
  color: var(--pp-text);
  font-size: 14px;
  box-shadow: var(--pp-shadow);
  transform: translateX(-50%);
}

/* ---------------------------------------------------------------- brand + footer */

.pp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pp-text);
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.pp-brand img {
  border-radius: 0;
}

/* The approved full lockup carries the Earth, the pin and the wordmark in one image, so no live type
 * sits beside it and the name is never printed twice. The intrinsic ratio comes from the artwork (the
 * width/height attributes carry the real 900x300 export): no tile, radius or shadow. The link keeps
 * its accessible name from aria-label="PinPonder home", and the Party pill stays a separate element. */
.pp-brand__lockup {
  display: block;
  width: 190px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.pp-brand--small .pp-brand__lockup {
  width: 145px;
}

.pp-brand__mode {
  padding: 3px 8px;
  border: 1px solid var(--pp-line-strong);
  border-radius: 999px;
  color: var(--pp-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pp-brand--small {
  font-size: 16px;
}

.pp-brand--small img {
  border-radius: 0;
}

.pp-brandbar,
.pp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  /* Flat brand navy behind the lockup: the row is exactly as tall as the logo, so the artwork's own
   * opaque background meets a surface of the same colour instead of a contrasting rectangle. */
  background: var(--pp-brand-surface);
  margin-bottom: clamp(20px, 4vw, 44px);
}

.pp-brandbar__nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.pp-footer {
  margin-top: clamp(28px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--pp-line);
  color: var(--pp-muted);
  font-size: 13px;
}

.pp-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.pp-footer__publisher {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pp-text);
  font-weight: 640;
}

.pp-footer__publisher img {
  border-radius: 8px;
  opacity: 0.9;
}

.pp-footer__note {
  margin-top: 8px;
}

/* ---------------------------------------------------------------- entry */

.pp-entry {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.pp-entry__backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      105deg,
      rgba(16, 28, 52, 0.97) 8%,
      rgba(16, 28, 52, 0.82) 46%,
      rgba(16, 28, 52, 0.62) 100%
    ),
    linear-gradient(180deg, rgba(16, 28, 52, 0.15), rgba(16, 28, 52, 0.96)),
    url('/site-assets/gameplay-street.webp?v=world-20260922');
  background-size: cover, cover, cover;
  background-position:
    center,
    center,
    62% 42%;
  filter: saturate(0.92);
}

.pp-entry__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 520px at 78% 22%, rgba(35, 99, 215, 0.22), transparent 62%);
}

.pp-entry .pp-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.pp-entry__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  flex: 1;
}

.pp-entry__pitch h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  letter-spacing: -0.038em;
  line-height: 0.98;
}

.pp-entry__pitch h1 em {
  font-style: normal;
  color: var(--pp-accent);
}

.pp-lede {
  max-width: 46ch;
  margin-top: 20px;
  color: var(--pp-muted);
  font-size: clamp(15px, 1.5vw, 18px);
}

.pp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(24px, 4vw, 40px);
  max-width: 560px;
}

.pp-stat {
  padding: 16px 18px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: rgba(19, 36, 62, 0.62);
}

.pp-stat dt {
  color: var(--pp-muted);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pp-stat dd {
  margin-top: 4px;
  color: var(--pp-text);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pp-facts {
  display: grid;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 32px);
  max-width: 56ch;
  color: var(--pp-muted);
  font-size: 14px;
}

.pp-facts li {
  position: relative;
  padding-left: 26px;
}

.pp-facts li::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 4px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--pp-accent);
}

.pp-entry__card {
  padding: clamp(20px, 3vw, 28px);
}

.pp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: rgba(16, 28, 52, 0.62);
}

.pp-tab {
  min-height: var(--pp-control);
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--pp-muted);
  font-size: 14px;
  font-weight: 680;
  cursor: pointer;
  transition:
    background-color var(--pp-motion-fast) var(--pp-ease),
    color var(--pp-motion-fast) var(--pp-ease);
}

.pp-tab[aria-selected='true'] {
  border-color: var(--pp-line-strong);
  background: var(--pp-surface-2);
  color: var(--pp-text);
}

.pp-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.pp-panel__lead {
  color: var(--pp-muted);
  font-size: 14px;
}

.pp-field {
  display: grid;
  gap: 7px;
}

.pp-field__label {
  color: var(--pp-text);
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.01em;
}

.pp-field input {
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--pp-line-strong);
  border-radius: var(--pp-radius-sm);
  background: rgba(16, 28, 52, 0.72);
  color: var(--pp-text);
  font-size: 17px;
  font-weight: 620;
  letter-spacing: 0.02em;
}

.pp-field input::placeholder {
  color: rgba(183, 201, 226, 0.58);
  font-weight: 560;
}

#pp-code {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.pp-field__help {
  color: var(--pp-muted);
  font-size: 12.5px;
}

.pp-form__status {
  min-height: 20px;
  color: var(--pp-muted);
  font-size: 13px;
}

.pp-form__status.is-error {
  color: var(--pp-alert-text);
}

.pp-form__status.is-ok {
  color: var(--pp-success);
}

.pp-form__help {
  margin-top: -6px;
  color: rgba(183, 201, 226, 0.78);
  font-size: 12px;
  line-height: 1.55;
}

.pp-resume {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--pp-line);
}

.pp-resume__title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pp-muted);
}

.pp-resume__list {
  display: grid;
  gap: 10px;
}

.pp-resume__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius-sm);
  background: rgba(16, 28, 52, 0.5);
}

.pp-resume__meta {
  min-width: 0;
}

.pp-resume__code {
  display: block;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}

.pp-resume__name {
  display: block;
  color: var(--pp-muted);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.pp-manual {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed var(--pp-line-strong);
  border-radius: var(--pp-radius-sm);
  background: rgba(16, 28, 52, 0.5);
}

.pp-manual__input {
  font-size: 14px !important;
  letter-spacing: 0 !important;
  font-variant-numeric: normal;
}

/* ---------------------------------------------------------------- lobby */

.pp-topbar {
  margin-bottom: clamp(16px, 3vw, 28px);
}

.pp-topbar__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pp-roomchip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--pp-line-strong);
  border-radius: 999px;
  background: rgba(16, 28, 52, 0.66);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}

.pp-roomchip__label {
  color: var(--pp-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pp-lobby__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas:
    'invite roster'
    'clock roster';
  gap: clamp(16px, 2.4vw, 24px);
  align-items: start;
}

.pp-invite {
  grid-area: invite;
}

.pp-clock {
  grid-area: clock;
}

.pp-roster-card {
  grid-area: roster;
}

.pp-invite__lead {
  color: var(--pp-muted);
  font-size: 14px;
}

.pp-invite__code {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0;
  padding: 16px 20px;
  border: 1px solid var(--pp-line-strong);
  border-radius: var(--pp-radius);
  background: rgba(16, 28, 52, 0.66);
}

.pp-invite__code-value {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 780;
  letter-spacing: 0.26em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.pp-invite__code-label {
  color: var(--pp-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pp-invite__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pp-invite__status {
  min-height: 20px;
  margin-top: 10px;
  color: var(--pp-success);
  font-size: 13px;
}

.pp-invite__you {
  margin-top: 14px;
  color: var(--pp-muted);
  font-size: 14px;
}

.pp-invite__you strong {
  color: var(--pp-text);
  overflow-wrap: anywhere;
}

.pp-clock {
  display: grid;
  justify-items: center;
  text-align: center;
}

.pp-clock__ring {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 6px 0 12px;
}

.pp-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pp-ring__track {
  fill: none;
  stroke: rgba(102, 135, 178, 0.3);
  stroke-width: 8;
}

.pp-ring__value {
  fill: none;
  stroke: var(--pp-success);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: var(--pp-ring);
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 240ms linear;
}

.pp-clock__time {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 780;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.pp-clock__state {
  font-size: 19px;
  font-weight: 720;
}

.pp-clock__help {
  margin-top: 6px;
  color: var(--pp-muted);
  font-size: 13px;
  max-width: 42ch;
}

.pp-clock__start {
  display: grid;
  gap: 9px;
  width: min(100%, 360px);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--pp-line);
}

.pp-clock__start .pp-button {
  justify-content: space-between;
  min-height: 54px;
}

.pp-clock__reset {
  margin-top: 16px;
  color: var(--pp-muted);
  font-size: 11.5px;
}

.pp-clock[data-state='waiting'] .pp-ring__value {
  stroke: rgba(102, 135, 178, 0.45);
  stroke-dashoffset: 0;
}

.pp-clock[data-state='waiting'] .pp-clock__time {
  color: var(--pp-muted);
  font-size: 26px;
  letter-spacing: 0.02em;
}

.pp-clock[data-state='urgent'] .pp-ring__value {
  stroke: var(--pp-alert);
}

.pp-clock[data-state='urgent'] .pp-clock__time {
  color: var(--pp-alert);
}

.pp-roster-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pp-roster-card__head h2 {
  font-size: 20px;
}

.pp-roster-count {
  color: var(--pp-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

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

.pp-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius-sm);
  background: rgba(16, 28, 52, 0.46);
}

.pp-slot--empty {
  border-style: dashed;
  background: rgba(16, 28, 52, 0.24);
  color: rgba(183, 201, 226, 0.72);
  font-size: 12.5px;
}

.pp-slot--you {
  border-color: rgba(120, 221, 165, 0.55);
  background: rgba(120, 221, 165, 0.11);
}

.pp-slot--forfeited .pp-slot__name {
  text-decoration: line-through;
  text-decoration-color: var(--pp-alert);
}

.pp-slot__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--pp-line-strong);
  border-radius: 12px;
  background: var(--pp-surface-2);
  color: var(--pp-text);
  font-size: 14px;
  font-weight: 740;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pp-slot--host .pp-slot__avatar {
  border-color: rgba(135, 189, 255, 0.6);
  color: var(--pp-accent);
}

.pp-slot__body {
  min-width: 0;
  flex: 1;
}

.pp-slot__name {
  display: block;
  font-size: 14.5px;
  font-weight: 660;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-slot__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

.pp-tag {
  padding: 2px 7px;
  border: 1px solid var(--pp-line);
  border-radius: 999px;
  color: var(--pp-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pp-tag--host {
  border-color: rgba(135, 189, 255, 0.5);
  color: var(--pp-accent);
}

.pp-tag--you {
  border-color: rgba(120, 221, 165, 0.5);
  color: var(--pp-success);
}

.pp-tag--locked {
  border-color: rgba(120, 221, 165, 0.45);
  color: var(--pp-success);
}

.pp-tag--left {
  border-color: rgba(255, 125, 135, 0.5);
  color: var(--pp-alert);
}

.pp-slot__kick {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 10px;
}

.pp-roster__note {
  margin-top: 14px;
  color: var(--pp-muted);
  font-size: 12.5px;
}

/* ---------------------------------------------------------------- shared start */

.pp-start-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: auto;
  overscroll-behavior: contain;
  padding: max(28px, env(safe-area-inset-top, 0px)) 20px max(28px, env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(ellipse at 50% 45%, rgba(35, 99, 215, 0.2), transparent 62%),
    var(--pp-ink-deep);
  animation: pp-fade 220ms var(--pp-ease);
}

.pp-start-overlay__card {
  display: grid;
  justify-items: center;
  width: min(620px, 100%);
  text-align: center;
}

.pp-start-overlay h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  letter-spacing: -0.045em;
}

.pp-start-overlay__clock {
  display: grid;
  align-content: center;
  width: clamp(172px, 28vw, 258px);
  aspect-ratio: 1;
  margin: clamp(22px, 4vh, 36px) 0 24px;
  border: 1px solid rgba(135, 189, 255, 0.45);
  border-radius: 50%;
  background: var(--pp-brand-surface);
  box-shadow: 0 0 0 10px rgba(135, 189, 255, 0.035), 0 0 0 22px rgba(135, 189, 255, 0.025), 0 24px 64px -28px #020814;
}

#pp-start-seconds {
  color: var(--pp-text);
  font-size: clamp(88px, 14vw, 144px);
  font-weight: 780;
  line-height: 0.95;
  letter-spacing: -0.075em;
  font-variant-numeric: tabular-nums;
  padding-right: 0.075em;
}

.pp-start-overlay__unit {
  margin-top: 12px;
  color: var(--pp-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pp-start-overlay__message {
  max-width: 42ch;
  min-height: 1.55em;
  color: var(--pp-text);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 620;
  text-wrap: balance;
}

.pp-start-overlay__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--pp-line);
  color: var(--pp-muted);
  font-size: 13px;
}

.pp-start-overlay__facts > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pp-start-overlay__facts strong,
.pp-start-overlay__facts .pp-icon {
  color: var(--pp-accent);
}

.pp-start-overlay__facts .pp-icon {
  width: 18px;
  height: 18px;
}

.pp-start-overlay__note {
  margin-top: 16px;
  color: var(--pp-muted);
  font-size: 12px;
  text-wrap: balance;
}

/* ---------------------------------------------------------------- live match */

/* A hidden attribute must win over every layout rule below, including the ones that set display. */
[hidden] {
  display: none !important;
}

.pp-match {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  background: var(--pp-ink);
}

.pp-photo {
  position: absolute;
  inset: 0;
}

.pp-panorama {
  position: absolute;
  inset: 0;
  background: var(--pp-ink);
}

.pp-panorama .pnlm-container {
  background: var(--pp-ink);
  font-family: var(--pp-font);
}

/* The opaque sibling cover leaves the panorama and its canvas fully laid out and rendering. */
.pp-round-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 140px calc(clamp(360px, 27vw, 430px) + 48px) 180px 28px;
  background:
    radial-gradient(ellipse at 28% 48%, rgba(35, 99, 215, 0.13), transparent 58%),
    var(--pp-ink-deep);
  text-align: center;
}

.pp-round-loading__content {
  width: min(440px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 8px;
  overscroll-behavior: contain;
}

.pp-round-loading__symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 28px;
  border: 1px solid var(--pp-line-strong);
  border-radius: 24px;
  background: var(--pp-brand-surface);
  color: var(--pp-accent);
  box-shadow: 0 0 0 8px rgba(135, 189, 255, 0.035);
}

.pp-round-loading__symbol > .pp-icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.5;
}

.pp-round-loading__spark {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 3px solid var(--pp-ink-deep);
  border-radius: 50%;
  background: var(--pp-primary);
  color: var(--pp-text);
}

.pp-round-loading__spark .pp-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.pp-round-loading h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.pp-round-loading__detail {
  margin-top: 14px;
  color: var(--pp-muted);
  font-size: 14px;
  text-wrap: balance;
}

.pp-round-loading__players {
  display: inline-block;
  max-width: 100%;
  max-height: 96px;
  overflow-y: auto;
  margin-top: 24px;
  padding: 8px 14px;
  border: 1px solid var(--pp-line);
  border-radius: 999px;
  background: var(--pp-brand-surface);
  color: var(--pp-accent);
  font-size: 12px;
  font-weight: 640;
  overflow-wrap: anywhere;
}

.pp-round-loading__players:empty {
  display: none;
}

.pp-photo-block {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(600px 320px at 50% 40%, rgba(23, 43, 73, 0.85), transparent),
    var(--pp-ink);
}

/* A failed photograph keeps its existing, keyboard-accessible retry above the readiness cover. */
.pp-photo:has(.pp-round-loading:not([hidden])) .pp-photo-block {
  top: auto;
  right: calc(clamp(360px, 27vw, 430px) + 48px);
  bottom: 78px;
  left: 28px;
  padding: 0;
  background: none;
  pointer-events: none;
}

.pp-photo:has(.pp-round-loading:not([hidden])) .pp-photo-block:has(#pp-photo-retry[hidden]) {
  opacity: 0;
}

.pp-photo:has(.pp-round-loading:not([hidden])) .pp-photo-block__inner {
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 125, 135, 0.45);
  border-radius: var(--pp-radius-sm);
  background: var(--pp-ink);
  pointer-events: auto;
}

.pp-photo:has(.pp-round-loading:not([hidden])) .pp-photo-status {
  font-size: 13px;
  color: var(--pp-alert-text);
}

.pp-photo-block__inner {
  display: grid;
  gap: 16px;
  justify-items: center;
  max-width: 46ch;
}

.pp-photo-status {
  font-size: 16px;
  font-weight: 640;
  color: var(--pp-text);
}

.pp-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(12px, 2vw, 20px);
  /* Flat brand navy rather than a scrim that fades out: the lockup is opaque, so the bar it sits on
   * has to be the artwork's own colour. Everything below the bar keeps the approved palette. */
  background: var(--pp-brand-surface);
  border-bottom: 1px solid var(--pp-line);
  box-shadow: 0 12px 30px -20px #020814;
}

.pp-hud__left,
.pp-hud__right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pp-hud__center {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.pp-hud__round {
  color: var(--pp-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pp-roomchip--hud {
  padding: 6px 12px;
  font-size: 15px;
  letter-spacing: 0.16em;
}

.pp-dots {
  display: flex;
  gap: 6px;
}

.pp-dot {
  display: inline-block;
  width: 26px;
  height: 5px;
  border-radius: 999px;
  background: rgba(102, 135, 178, 0.36);
}

.pp-dot.is-done {
  background: var(--pp-success);
}

.pp-dot.is-current {
  background: var(--pp-accent);
}

.pp-timer {
  --pp-clock-colour: var(--pp-accent);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 180px;
  min-height: 78px;
  padding: 10px 15px;
  border: 1px solid rgba(135, 189, 255, 0.38);
  border-radius: var(--pp-radius-sm);
  background: #11294b;
  flex: none;
  color: var(--pp-clock-colour);
  transition: border-color var(--pp-motion), background-color var(--pp-motion);
}

.pp-timer > .pp-ring {
  flex: none;
  width: 38px;
  height: 38px;
}

.pp-timer .pp-ring__value {
  stroke: var(--pp-clock-colour);
  stroke-width: 10;
}

.pp-timer__readout {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pp-timer__label {
  color: var(--pp-clock-colour);
  font-size: 10px;
  font-weight: 740;
  line-height: 1.3;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.pp-timer__time {
  color: var(--pp-text);
  font-size: 40px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.pp-timer[data-warning='true'],
.pp-timer[data-state='warning'] {
  --pp-clock-colour: var(--pp-warning);
  border-color: rgba(255, 211, 138, 0.58);
  background: #302b28;
}

.pp-timer[data-urgent='true'] {
  --pp-clock-colour: var(--pp-alert-text);
  border: 2px solid var(--pp-alert);
  padding: 9px 14px;
  background: #3a2235;
  box-shadow: 0 0 0 3px rgba(255, 125, 135, 0.1);
}

.pp-timer[data-urgent='true'] .pp-timer__time {
  color: var(--pp-alert-text);
}

.pp-locked-count {
  color: var(--pp-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pp-locked-pill {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 118px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(120, 221, 165, 0.5);
  border-radius: 999px;
  background: rgba(16, 28, 52, 0.92);
  color: var(--pp-success);
  font-size: 14px;
  font-weight: 680;
  box-shadow: var(--pp-shadow);
  transform: translateX(-50%);
}

.pp-locked-pill--pop {
  animation: pp-pop 240ms var(--pp-ease);
}

.pp-locked-pill__count {
  color: var(--pp-muted);
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.pp-photo-tools {
  position: absolute;
  z-index: 8;
  left: clamp(12px, 2vw, 20px);
  bottom: clamp(12px, 2vw, 20px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: min(560px, 60vw);
}

.pp-photo-tools__zoom {
  display: flex;
  gap: 8px;
}

.pp-photo-tools .pp-button {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 13.5px;
}

.pp-mappanel {
  position: absolute;
  z-index: 10;
  right: clamp(12px, 2vw, 20px);
  bottom: clamp(12px, 2vw, 20px);
  display: flex;
  flex-direction: column;
  width: clamp(360px, 27vw, 430px);
  border: 1px solid var(--pp-line-strong);
  border-radius: var(--pp-radius-lg);
  background: linear-gradient(180deg, rgba(23, 43, 73, 0.92), rgba(16, 28, 52, 0.95));
  box-shadow: var(--pp-shadow);
  overflow: hidden;
}

.pp-mappanel.is-expanded {
  width: clamp(430px, 42vw, 760px);
}

.pp-mappanel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
}

.pp-mappanel__head h2 {
  font-size: 17px;
}

.pp-mappanel__sub {
  margin-top: 4px;
  color: var(--pp-muted);
  font-size: 12.5px;
}

.pp-mappanel__buttons {
  display: flex;
  gap: 6px;
}

.pp-mapwrap {
  position: relative;
  height: 252px;
  min-height: 160px;
  background: #13243e;
}

.pp-mappanel.is-expanded .pp-mapwrap {
  height: min(54vh, 470px);
}

.pp-map {
  position: absolute;
  inset: 0;
}

.pp-map canvas {
  outline: none;
}

.pp-map .maplibregl-ctrl-attrib {
  background: rgba(16, 28, 52, 0.78);
  border-radius: 8px 0 0 0;
  color: var(--pp-muted);
  font-size: 11px;
}

.pp-map .maplibregl-ctrl-attrib a {
  color: var(--pp-muted);
}

.pp-mapzoom {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: grid;
  gap: 6px;
}

.pp-mapstatus {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 82%;
  padding: 10px 16px;
  border: 1px solid var(--pp-line);
  border-radius: 999px;
  background: rgba(16, 28, 52, 0.9);
  color: var(--pp-text);
  font-size: 12.5px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.pp-mapretry {
  position: absolute;
  left: 50%;
  top: calc(50% + 40px);
  transform: translateX(-50%);
}

.pp-mappanel__foot {
  display: grid;
  gap: 10px;
  padding: 12px 16px 16px;
}

.pp-pin-status {
  color: var(--pp-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.pp-pin-status.is-set {
  color: var(--pp-success);
}

.pp-maphelp {
  color: var(--pp-muted);
  font-size: 11.5px;
  line-height: 1.6;
}

kbd {
  padding: 2px 6px;
  border: 1px solid var(--pp-line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: rgba(16, 28, 52, 0.6);
  color: var(--pp-text);
  font-family: inherit;
  font-size: 0.92em;
}

.pp-openmap {
  display: none;
}

.pp-drawer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: rgba(6, 12, 26, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--pp-motion) var(--pp-ease);
}

.pp-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pp-pin {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--pp-pin-colour, #87bdff);
  box-shadow: 0 4px 12px -3px rgba(2, 8, 20, 0.9);
  font-size: 10px;
  font-weight: 780;
  color: #0b1427;
  cursor: pointer;
}

.pp-pin--draft {
  width: 30px;
  height: 30px;
  border-width: 3px;
  border-color: #ffffff;
  background: var(--pp-primary);
  cursor: grab;
}

.pp-pin--answer {
  width: 30px;
  height: 30px;
  border-width: 3px;
  border-color: #f7faff;
  background: var(--pp-success);
  box-shadow:
    0 0 0 6px rgba(120, 221, 165, 0.24),
    0 6px 16px -4px rgba(2, 8, 20, 0.9);
}

.pp-pin--selected {
  outline: 3px solid var(--pp-accent);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- reveal */

.pp-reveal {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: auto;
  background: linear-gradient(180deg, rgba(16, 28, 52, 0.97), rgba(11, 20, 39, 0.99));
  animation: pp-fade var(--pp-motion) var(--pp-ease);
}

.pp-reveal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
  width: min(1440px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(16px, 2.6vw, 30px);
}

.pp-reveal__mapcol,
.pp-reveal__scorecol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.pp-reveal__mapcol h1 {
  font-size: clamp(30px, 3.6vw, 48px);
}

.pp-reveal__place {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(17px, 1.8vw, 21px);
}

.pp-reveal__region {
  color: var(--pp-muted);
  font-size: 15px;
}

.pp-mapwrap--reveal {
  flex: 1;
  height: auto;
  min-height: 340px;
  border: 1px solid var(--pp-line-strong);
  border-radius: var(--pp-radius-lg);
  overflow: hidden;
}

.pp-maplegend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--pp-muted);
  font-size: 12.5px;
}

.pp-maplegend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pp-dot--answer {
  width: 12px;
  height: 12px;
  background: var(--pp-success);
  box-shadow: 0 0 0 3px rgba(120, 221, 165, 0.26);
}

.pp-dot--you {
  background: var(--pp-accent);
}

.pp-reveal__yourguess {
  color: var(--pp-muted);
  font-size: 14px;
}

.pp-reveal__scorecol h2 {
  font-size: 20px;
}

.pp-next {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 16px;
  border: 1px solid var(--pp-line-strong);
  border-radius: var(--pp-radius-sm);
  /* The reveal phase's own header bar, so it takes the same flat brand navy as the other headers. */
  background: var(--pp-brand-surface);
  font-size: 15px;
  font-weight: 660;
}

.pp-next strong {
  color: var(--pp-success);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.pp-next[data-urgent='true'] strong {
  color: var(--pp-alert);
}

/* The round label only appears in the phone layout, where this bar becomes the sticky phase header. */
.pp-next__phase {
  display: none;
}

.pp-next__count {
  white-space: nowrap;
}

.pp-reveal__hint {
  color: var(--pp-muted);
  font-size: 12.5px;
}

.pp-scores {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-bottom: 6px;
}

.pp-score {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius-sm);
  background: rgba(23, 43, 73, 0.55);
  color: var(--pp-text);
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--pp-motion-fast) var(--pp-ease),
    background-color var(--pp-motion-fast) var(--pp-ease);
}

.pp-score:hover {
  background: rgba(29, 53, 86, 0.7);
}

.pp-score.is-selected {
  border-color: var(--pp-accent);
}

.pp-score.is-you {
  box-shadow: inset 3px 0 0 var(--pp-accent);
}

.pp-score__rank {
  color: var(--pp-muted);
  font-size: 15px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.pp-score__name {
  font-size: 15px;
  font-weight: 660;
  overflow-wrap: anywhere;
}

.pp-score__meta {
  color: var(--pp-muted);
  font-size: 12px;
}

.pp-score__points {
  display: grid;
  justify-items: end;
  font-size: 17px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.pp-score__points small {
  color: var(--pp-muted);
  font-size: 11.5px;
  font-weight: 600;
}

/* ---------------------------------------------------------------- finished */

.pp-finished {
  position: fixed;
  inset: 0;
  z-index: 25;
  overflow: auto;
  background: linear-gradient(180deg, rgba(16, 28, 52, 0.98), rgba(11, 20, 39, 1));
  animation: pp-fade var(--pp-motion) var(--pp-ease);
}

.pp-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.pp-confetti__bit {
  position: absolute;
  top: -10vh;
  left: calc(var(--pp-x, 50) * 1%);
  width: 10px;
  height: 15px;
  border-radius: 3px;
  background: var(--pp-colour, var(--pp-accent));
  opacity: 0.92;
  animation: pp-fall 1.5s var(--pp-ease) forwards;
  animation-delay: var(--pp-delay, 0ms);
}

.pp-winner {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 100dvh;
  padding: clamp(24px, 5vw, 64px);
  text-align: center;
}

.pp-winner__title {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 100%;
  font-size: clamp(34px, 6vw, 74px);
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.pp-crown {
  width: clamp(96px, 14vw, 158px);
  height: auto;
  fill: var(--pp-success);
  filter: drop-shadow(0 16px 34px rgba(120, 221, 165, 0.24));
}

.pp-crown__band {
  fill: var(--pp-primary);
}

.pp-winner__line {
  color: var(--pp-muted);
  font-size: clamp(15px, 1.8vw, 19px);
  max-width: 52ch;
}

.pp-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  width: min(760px, 100%);
  margin-top: 24px;
}

.pp-podium__step {
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 16px 12px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: rgba(23, 43, 73, 0.62);
}

.pp-podium__step--1 {
  padding-block: 30px;
  border-color: rgba(120, 221, 165, 0.55);
  background: rgba(120, 221, 165, 0.12);
}

.pp-podium__medal {
  color: var(--pp-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pp-podium__name {
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.pp-podium__points {
  color: var(--pp-success);
  font-size: 19px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.pp-winner__actions {
  margin-top: 26px;
}

.pp-standings {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 28px) 64px;
  animation: pp-fade var(--pp-motion) var(--pp-ease);
}

.pp-standings h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.pp-standings__note {
  margin-top: 8px;
  color: var(--pp-muted);
  font-size: 13.5px;
}

.pp-leaderboard {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.pp-lbrow {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius-sm);
  background: rgba(23, 43, 73, 0.5);
}

.pp-lbrow--winner {
  border-color: rgba(120, 221, 165, 0.5);
  background: rgba(120, 221, 165, 0.11);
}

.pp-lbrow--you {
  box-shadow: inset 3px 0 0 var(--pp-accent);
}

.pp-lbrow__rank {
  color: var(--pp-muted);
  font-size: 20px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.pp-lbrow__body {
  min-width: 0;
}

.pp-lbrow__name {
  font-size: 15.5px;
  font-weight: 660;
  overflow-wrap: anywhere;
}

.pp-lbrow__rounds {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.pp-lbrow__round {
  padding: 5px 7px;
  border: 1px solid var(--pp-line);
  border-radius: 9px;
  background: rgba(16, 28, 52, 0.5);
  font-size: 12.5px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pp-lbrow__round small {
  display: block;
  color: var(--pp-muted);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pp-lbrow__total {
  font-size: 22px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.pp-standings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* ---------------------------------------------------------------- dialogs */

.pp-dialog {
  width: min(660px, 94vw);
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--pp-line-strong);
  border-radius: var(--pp-radius-lg);
  background: linear-gradient(180deg, rgba(23, 43, 73, 0.99), rgba(16, 28, 52, 0.99));
  color: var(--pp-text);
  box-shadow: var(--pp-shadow);
  overflow: hidden;
}

.pp-dialog::backdrop {
  background: rgba(6, 12, 26, 0.78);
}

.pp-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--pp-line);
}

.pp-dialog__head h2 {
  font-size: clamp(19px, 2.4vw, 23px);
}

.pp-dialog__body {
  display: grid;
  gap: 12px;
  max-height: 62dvh;
  overflow: auto;
  padding: 18px 20px;
  color: var(--pp-muted);
  font-size: 14px;
}

.pp-dialog__body h3 {
  color: var(--pp-text);
  font-size: 13px;
  font-weight: 740;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pp-dialog__body ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  list-style: disc;
}

.pp-dialog__body b {
  color: var(--pp-text);
}

.pp-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--pp-line);
}

.pp-warning {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 125, 135, 0.45);
  border-radius: var(--pp-radius-sm);
  background: rgba(255, 125, 135, 0.12);
  color: #ffd9dd;
}

.pp-credits__status:empty {
  display: none;
}

.pp-credits {
  display: grid;
  gap: 10px;
}

.pp-credits__row {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius-sm);
  background: rgba(16, 28, 52, 0.5);
}

.pp-credits__label {
  color: var(--pp-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pp-credits__value {
  color: var(--pp-text);
  font-size: 13.5px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

/* ---------------------------------------------------------------- hotspot arrows */

.pp-hotspot-anchor {
  width: 60px;
  height: 60px;
  pointer-events: auto;
  background: none;
  cursor: default;
}

.pp-hotspot {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 2px solid rgba(247, 250, 255, 0.92);
  border-radius: 50%;
  background: rgba(16, 28, 52, 0.8);
  color: var(--pp-text);
  box-shadow: 0 8px 24px -10px rgba(2, 8, 20, 0.95);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--pp-motion-fast) var(--pp-ease),
    color var(--pp-motion-fast) var(--pp-ease),
    transform var(--pp-motion-fast) var(--pp-ease);
}

.pp-hotspot__arrow {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.pp-hotspot__label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 4px 9px;
  border: 1px solid var(--pp-line-strong);
  border-radius: 8px;
  background: rgba(16, 28, 52, 0.94);
  font-size: 11px;
  font-weight: 660;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}

.pp-hotspot:hover {
  background: var(--pp-primary);
  color: #ffffff;
  transform: scale(1.04);
}

.pp-hotspot:focus-visible {
  outline: 3px solid var(--pp-focus);
  outline-offset: 4px;
}

/* ---------------------------------------------------------------- animation */

@keyframes pp-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pp-pop {
  0% {
    transform: translateX(-50%) scale(0.86);
  }
  60% {
    transform: translateX(-50%) scale(1.05);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

@keyframes pp-fall {
  0% {
    opacity: 0.95;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(118vh) rotate(540deg);
  }
}

/* ---------------------------------------------------------------- responsive */

@media (min-width: 769px) {
  .pp-only-phone {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1150px) {
  .pp-roomchip--hud,
  .pp-hud .pp-brand__mode {
    display: none;
  }

  .pp-hud__right {
    display: grid;
    grid-template-columns: auto auto;
    gap: 3px 10px;
  }

  .pp-timer {
    grid-row: 1 / 3;
  }

  .pp-locked-count {
    grid-column: 2;
    grid-row: 2;
    text-align: center;
    font-size: 11px;
  }
}

@media (max-width: 1000px) {
  .pp-entry__grid,
  .pp-lobby__grid,
  .pp-reveal__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pp-lobby__grid {
    grid-template-areas:
      'invite'
      'clock'
      'roster';
  }

  .pp-reveal__scorecol {
    order: 2;
  }

  .pp-mapwrap--reveal {
    min-height: 300px;
    flex: none;
    height: min(46dvh, 420px);
  }

  .pp-scores {
    max-height: none;
  }
}

@media (max-width: 768px) {
  body.pp[data-view='match'],
  body.pp[data-view='reveal'] {
    height: auto;
    min-height: 100dvh;
  }

  .pp-match {
    height: 100dvh;
  }

  .pp-hud {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  }

  .pp-hud__left {
    gap: 8px;
  }

  .pp-hud__right {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 3px 8px;
  }

  .pp-hud__left .pp-iconbtn {
    width: 38px;
    height: 42px;
    min-width: 38px;
    min-height: 42px;
  }

  .pp-hud__right > .pp-button {
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 8px 10px;
    min-height: 44px;
    font-size: 12px;
  }

  /* Keep the live clock legible while the map drawer dims and blocks the photograph. */
  .pp-match:has(.pp-mappanel.is-open) .pp-hud {
    z-index: 12;
    pointer-events: none;
  }

  .pp-match:has(.pp-mappanel.is-open) .pp-hud__left,
  .pp-match:has(.pp-mappanel.is-open) .pp-hud__right > .pp-button {
    opacity: 0.45;
  }

  .pp-hud .pp-brand__mode {
    display: none;
  }

  .pp-hud__center {
    order: 3;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
  }

  .pp-hud__round {
    font-size: 10px;
  }

  .pp-hud__status {
    flex-basis: 100%;
  }

  .pp-hud .pp-dot {
    width: 20px;
    height: 4px;
  }

  .pp-roomchip--hud {
    display: none;
  }

  /* Phones: the lockup and its small HUD variant step down with the viewport. */
  .pp-brand__lockup {
    width: 168px;
  }

  .pp-brand--small .pp-brand__lockup {
    width: 128px;
  }

  .pp-timer {
    grid-column: 1;
    grid-row: 1;
    width: 130px;
    min-height: 66px;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .pp-timer > .pp-ring {
    width: 28px;
    height: 28px;
  }

  .pp-timer__label {
    font-size: 8px;
    letter-spacing: 0.05em;
  }

  .pp-timer__time {
    font-size: 34px;
  }

  .pp-timer[data-urgent='true'] {
    padding: 7px 9px;
  }

  .pp-locked-count {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    font-size: 10px;
  }

  .pp-round-loading {
    padding: 156px 24px 220px;
    background:
      radial-gradient(ellipse at 50% 42%, rgba(35, 99, 215, 0.13), transparent 58%),
      var(--pp-ink-deep);
  }

  .pp-round-loading__symbol {
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    border-radius: 18px;
  }

  .pp-round-loading__symbol > .pp-icon {
    width: 28px;
    height: 28px;
  }

  .pp-round-loading .pp-eyebrow {
    font-size: 10px;
  }

  .pp-round-loading__detail {
    font-size: 13px;
    margin-top: 10px;
  }

  .pp-round-loading__players {
    margin-top: 18px;
  }

  .pp-photo:has(.pp-round-loading:not([hidden])) .pp-photo-block {
    left: 16px;
    right: 16px;
    bottom: 145px;
  }

  .pp-photo:has(#pp-photo-retry:not([hidden])) .pp-round-loading {
    padding-bottom: 300px;
  }

  .pp-photo:has(#pp-photo-retry:not([hidden])) .pp-round-loading__symbol {
    display: none;
  }

  .pp-photo-tools {
    left: 10px;
    right: 10px;
    bottom: 84px;
    max-width: none;
  }

  .pp-photo-tools .pp-button span {
    display: none;
  }

  .pp-locked-pill {
    bottom: 150px;
    max-width: calc(100% - 24px);
    font-size: 13px;
    text-align: center;
  }

  /* The guess map becomes a full-width drawer with a sticky confirm row. */
  .pp-mappanel {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: calc(100dvh - 142px - env(safe-area-inset-top, 0px));
    border-radius: var(--pp-radius-lg) var(--pp-radius-lg) 0 0;
    transform: translateY(101%);
    transition: transform var(--pp-motion) var(--pp-ease);
    z-index: 30;
  }

  .pp-mappanel.is-open {
    transform: none;
  }

  .pp-mappanel.is-expanded .pp-mapwrap,
  .pp-mappanel .pp-mapwrap {
    height: min(52dvh, 420px);
    flex: 1 1 auto;
    min-height: 120px;
  }

  .pp-mappanel__head,
  .pp-mappanel__foot {
    flex-shrink: 0;
  }

  .pp-mappanel__foot {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(16, 28, 52, 0.82), rgba(16, 28, 52, 0.98));
  }

  .pp-openmap {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding: 12px 18px;
    border: 1px solid var(--pp-line-strong);
    border-radius: var(--pp-radius);
    background: linear-gradient(180deg, rgba(23, 43, 73, 0.96), rgba(16, 28, 52, 0.96));
    color: var(--pp-text);
    font-size: 15px;
    font-weight: 680;
    cursor: pointer;
  }

  .pp-openmap__main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

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

  .pp-winner {
    min-height: auto;
    padding-block: 48px 32px;
  }

  .pp-podium {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .pp-podium__step--1 {
    order: -1;
    padding-block: 22px;
  }

  .pp-lbrow {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .pp-lbrow__total {
    font-size: 19px;
  }

  .pp-dialog__foot {
    justify-content: stretch;
  }

  .pp-dialog__foot .pp-button {
    flex: 1 1 auto;
  }

  /* The phone result view is one scrollable column. The countdown turns into a compact sticky phase
     header, so time remaining is always on screen, and the two desktop columns dissolve so the answer,
     the map and the ranked list can be ordered for a small screen. All twenty score rows stay in the
     page flow and scroll normally. */
  .pp-reveal__grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .pp-reveal__mapcol,
  .pp-reveal__scorecol {
    display: contents;
  }

  .pp-reveal .pp-next {
    order: 1;
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 12px;
    padding: 8px 14px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    border-radius: 0 0 var(--pp-radius-sm) var(--pp-radius-sm);
    background: var(--pp-brand-surface);
    box-shadow: 0 10px 18px -14px rgba(2, 8, 20, 0.95);
    font-size: 14px;
  }

  #pp-next-phase {
    display: inline;
    color: var(--pp-accent);
    font-size: 11.5px;
    font-weight: 740;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  /* The phase now lives in the sticky header, so the duplicate inline label goes. */
  #pp-reveal-eyebrow {
    display: none;
  }

  .pp-reveal__mapcol h1 {
    order: 2;
  }

  .pp-reveal__place {
    order: 3;
  }

  #pp-reveal-answer {
    order: 4;
  }

  .pp-reveal .pp-mapwrap--reveal {
    order: 5;
    flex: none;
    height: clamp(200px, 26dvh, 240px);
    min-height: 200px;
  }

  #pp-reveal-yourguess {
    order: 6;
  }

  #pp-reveal-legend {
    order: 7;
  }

  #pp-reveal-scores-title {
    order: 8;
  }

  .pp-reveal__hint {
    order: 9;
  }

  #pp-scores {
    order: 10;
  }

  .pp-reveal .pp-maphelp {
    order: 11;
  }
}

@media (max-width: 420px) {
  body.pp {
    font-size: 15px;
  }

  .pp-shell {
    padding-inline: 14px;
  }

  .pp-entry__pitch h1 {
    font-size: clamp(34px, 10.5vw, 44px);
  }

  .pp-stats {
    gap: 8px;
  }

  .pp-stat {
    padding: 12px;
  }

  .pp-stat dd {
    font-size: 30px;
  }

  .pp-invite__code {
    padding: 12px 14px;
  }

  .pp-invite__code-value {
    font-size: 30px;
    letter-spacing: 0.2em;
  }

  .pp-brand__lockup {
    width: 150px;
  }

  /* The match HUD is the tightest row in the client: below 420px the lockup steps down and the Party
   * pill goes, exactly as the old brand text did, so the controls still fit a 320px screen. */
  .pp-hud .pp-brand__lockup {
    width: 96px;
  }

  .pp-hud .pp-brand__mode {
    display: none;
  }

  .pp-timer {
    width: 120px;
    gap: 6px;
    padding-inline: 8px;
  }

  .pp-timer[data-urgent='true'] {
    padding-inline: 7px;
  }

  .pp-timer > .pp-ring {
    width: 24px;
    height: 24px;
  }

  .pp-hud__right {
    column-gap: 6px;
  }

  .pp-hud__right > .pp-button {
    padding-inline: 8px;
  }

  .pp-start-overlay__facts {
    gap: 10px 16px;
    font-size: 12px;
  }

  .pp-lbrow__rounds {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .pp-lbrow__round {
    padding: 4px 3px;
    font-size: 11px;
  }

  /* Two names can be fifty characters in the celebration title. Below roughly 380px the title steps down
     with the viewport so a long name wraps to two lines inside a 320px screen instead of filling it. */
  .pp-winner__title {
    font-size: clamp(26px, 9vw, 34px);
  }
}

@media (max-width: 360px) {
  .pp-hud {
    padding-inline: 8px;
    column-gap: 4px;
  }

  .pp-hud__left {
    gap: 3px;
  }

  .pp-hud .pp-brand__lockup {
    width: 82px;
  }

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

  .pp-roomchip {
    font-size: 15px;
    letter-spacing: 0.14em;
  }
}

@media (max-height: 700px) {
  .pp-round-loading {
    padding-top: 140px;
    padding-bottom: 170px;
  }

  .pp-round-loading__symbol {
    display: none;
  }

  .pp-round-loading__players {
    margin-top: 14px;
  }

  .pp-start-overlay__clock {
    width: 160px;
    margin-block: 22px;
  }

  #pp-start-seconds {
    font-size: 84px;
  }

  .pp-start-overlay__facts {
    margin-top: 20px;
    padding-top: 16px;
  }
}

@media (min-width: 1440px) {
  .pp-shell {
    width: min(1240px, 100%);
  }

  .pp-mapwrap {
    height: 300px;
  }

  .pp-reveal__grid {
    padding: 34px;
  }
}

/* ---------------------------------------------------------------- preferences */

@media (prefers-contrast: more) {
  :root {
    --pp-line: rgba(168, 197, 232, 0.5);
    --pp-line-strong: rgba(190, 214, 242, 0.75);
    --pp-muted: #dbe6f7;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .pp-confetti {
    display: none !important;
  }

  .pp-button:hover:not(:disabled),
  .pp-iconbtn:hover,
  .pp-hotspot:hover {
    transform: none;
  }
}

/* The in-page "reduce motion" choice for this device, applied by the client the same way. */
body.pp-reduced-motion *,
body.pp-reduced-motion *::before,
body.pp-reduced-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

body.pp-reduced-motion .pp-confetti {
  display: none !important;
}

body.pp-reduced-motion .pp-button:hover:not(:disabled),
body.pp-reduced-motion .pp-iconbtn:hover,
body.pp-reduced-motion .pp-hotspot:hover {
  transform: none;
}

/* ---------------------------------------------------------------- status + late additions */

.pp-hud__status {
  min-height: 0;
  color: var(--pp-alert);
  font-size: 12.5px;
  font-weight: 680;
  letter-spacing: 0.04em;
}

.pp-hud__status:empty {
  display: none;
}

.pp-connection {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(520px, 92vw);
  padding: 10px 18px;
  border: 1px solid rgba(255, 125, 135, 0.5);
  border-radius: 999px;
  background: rgba(16, 28, 52, 0.95);
  color: var(--pp-alert);
  font-size: 13.5px;
  font-weight: 660;
  box-shadow: var(--pp-shadow);
  transform: translateX(-50%);
}

body[data-view='match'] .pp-connection,
body[data-view='reveal'] .pp-connection {
  top: 92px;
}

.pp-connection__dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--pp-alert);
  animation: pp-pulse 1.6s ease-in-out infinite;
}

@keyframes pp-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.pp-score__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pp-score__name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pp-score__name .pp-dot {
  width: 11px;
  height: 11px;
  flex: none;
}

.pp-reveal__answer {
  color: var(--pp-success);
  font-size: 14px;
  font-weight: 660;
  font-variant-numeric: tabular-nums;
}

.pp-pin--locked {
  border-color: var(--pp-success);
  box-shadow:
    0 0 0 4px rgba(120, 221, 165, 0.27),
    0 6px 16px -4px rgba(2, 8, 20, 0.9);
}

.pp-next > span {
  color: var(--pp-muted);
}

.pp-credits__status.is-error {
  color: var(--pp-alert);
}

/* The publisher credit follows the match to its final screen, not just the entry page. */
.pp-publisher-end {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--pp-line);
  font-size: 13px;
}

.pp-publisher-end a {
  color: var(--pp-text);
  text-decoration: none;
}

.pp-publisher-end a:hover {
  text-decoration: underline;
}
