/* Clubism Prime time — composants (classes .pt-*). Charger APRÈS tokens.css.
   Toutes les valeurs viennent des tokens : couleurs, coupes, inclinaisons, durées. */

/* ── Typographie : ce que tokens.json ne sait pas dire ──────────────────────
   Les styles display-* sont en Anybody italique 900, CAPITALES, condensés par
   l'axe wdth. font-stretch suffit avec Google Fonts (axe déclaré) ;
   font-variation-settings le force avec un fichier variable local. */
.display-hero, .display-page-title, .display-profile-name, .display-section-title,
.display-card-title, .display-announce, .display-row-title, .display-label,
.display-tab, .display-button, .display-top-bar, .display-stat, .display-stat-small,
.pt-display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
}
.display-hero { font-stretch: 58%; font-variation-settings: "wdth" 58; }
.display-page-title, .display-section-title { font-stretch: 60%; font-variation-settings: "wdth" 60; }
.display-profile-name { font-stretch: 62%; font-variation-settings: "wdth" 62; }
.display-card-title { font-stretch: 66%; font-variation-settings: "wdth" 66; }
.display-announce, .display-stat, .display-stat-small { font-stretch: 70%; font-variation-settings: "wdth" 70; }
.display-tab { font-stretch: 78%; font-variation-settings: "wdth" 78; }
.display-row-title, .display-label, .display-button, .display-top-bar, .pt-display { font-stretch: 80%; font-variation-settings: "wdth" 80; }
.text-post, .text-long, .text-body, .text-strong, .text-meta, .text-meta-strong,
.text-micro, .text-micro-caps, .text-tag, .text-tile, .text-nav { font-family: var(--font-body); color: var(--ink); }
.text-long { color: var(--ink-2); }
.text-meta { color: var(--muted); }
.text-micro-caps, .text-tag, .text-nav { text-transform: uppercase; }
.text-micro-caps { color: var(--muted); }
.text-tile { color: var(--ink-2); }
.text-nav { color: var(--dim); }

/* ── Formes ─────────────────────────────────────────────────────────────── */
.pt-cut { clip-path: polygon(0 0, calc(100% - var(--pt-cut, var(--cut-md))) 0, 100% var(--pt-cut, var(--cut-md)), 100% 100%, 0 100%); }
.pt-cut--sm { --pt-cut: var(--cut-sm); }
.pt-cut--md { --pt-cut: var(--cut-md); }
.pt-cut--stat { --pt-cut: var(--cut-stat); }
.pt-cut--result { --pt-cut: var(--cut-result); }
.pt-cut--card { --pt-cut: var(--cut-card); }
.pt-cut--media { --pt-cut: var(--cut-media); }
.pt-trapeze { clip-path: polygon(0 0, 100% 0, calc(100% - var(--trapeze)) 100%, 0 100%); }

/* ── Page ───────────────────────────────────────────────────────────────── */
.pt-page { background: var(--page); color: var(--ink); font-family: var(--font-body); }
.pt-page-title { padding: var(--space-2) var(--page-margin) 0; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.pt-section-label { margin: 0 0 var(--space-4); }
.pt-micro-count { padding: var(--space-3) var(--page-margin) var(--space-2); }

/* ── Button ─────────────────────────────────────────────────────────────── */
.pt-btn {
  --pt-btn-h: 46px;
  appearance: none; border: 0; margin: 0 5px; padding: 0 18px; min-height: var(--pt-btn-h);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent);
  transform: skewX(var(--skew-button));
  cursor: pointer; text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out), opacity var(--duration-base) var(--ease-out);
}
.pt-btn > .pt-btn__in {
  display: inline-flex; align-items: center; gap: var(--space-3);
  transform: skewX(calc(var(--skew-button) * -1));
  font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-stretch: 80%; font-variation-settings: "wdth" 80;
  font-size: 15px; line-height: 1; letter-spacing: .04em; white-space: nowrap;
}
.pt-btn:active { transform: skewX(var(--skew-button)) scale(var(--press-cta)); }
.pt-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pt-btn--lg { --pt-btn-h: 50px; padding: 0 20px; }
.pt-btn--lg > .pt-btn__in { font-size: 16px; }
.pt-btn--sm { --pt-btn-h: 38px; padding: 0 14px; }
.pt-btn--sm > .pt-btn__in { font-size: 14px; }
.pt-btn--full { display: flex; width: calc(100% - 10px); }
.pt-btn--secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pt-btn--secondary:hover { background: var(--panel); }
.pt-btn--state { background: var(--panel-2); color: var(--ink); }
.pt-btn--success { background: transparent; color: var(--win); box-shadow: inset 0 0 0 1.5px var(--win); }
.pt-btn--danger { background: var(--loss); color: var(--white); }
.pt-btn--ghost { background: transparent; color: var(--accent-ink); transform: none; padding: 0 4px; margin: 0; }
.pt-btn--ghost > .pt-btn__in { transform: none; }
.pt-btn--ghost:active { transform: scale(var(--press-cta)); }
.pt-btn[disabled], .pt-btn[aria-disabled="true"] { opacity: var(--opacity-disabled); cursor: default; pointer-events: none; }

/* ── IconButton ─────────────────────────────────────────────────────────── */
.pt-icon-btn {
  appearance: none; border: 0; margin: 0; padding: 0; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  background: var(--panel); color: var(--ink); cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.pt-icon-btn:hover { background: var(--panel-2); }
.pt-icon-btn:active { transform: scale(var(--press-icon)); }
.pt-icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-icon-btn--plain { background: transparent; width: 44px; height: 44px; }
.pt-icon-btn--plain:hover { background: var(--panel); }
.pt-icon-btn--paper { background: var(--page); }
.pt-icon-btn--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.pt-icon-btn--accent { background: transparent; color: var(--on-accent); }
.pt-icon-btn--accent::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: skewX(var(--skew-button)); z-index: 0; }
.pt-icon-btn--accent > * { position: relative; z-index: 1; }
.pt-icon-btn svg { width: 20px; height: 20px; }

/* ── Badge (incliné) ────────────────────────────────────────────────────── */
.pt-badge {
  display: inline-flex; align-self: flex-start; padding: 3px 7px; margin: 0 2px;
  background: var(--accent); color: var(--on-accent);
  transform: skewX(var(--skew-badge));
}
.pt-badge > span {
  display: inline-block; transform: skewX(calc(var(--skew-badge) * -1));
  font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-stretch: 80%; font-variation-settings: "wdth" 80; font-size: 10.5px; line-height: 12px; letter-spacing: .05em; white-space: nowrap;
}
.pt-badge--ink { background: var(--ink); color: var(--on-ink); }
.pt-badge--neutral { background: var(--panel-2); color: var(--ink); }
.pt-badge--win { background: var(--panel-2); color: var(--win); }
.pt-badge--loss { background: var(--panel-2); color: var(--loss); }
.pt-badge--warn { background: var(--panel-2); color: var(--accent-ink); }

/* ── UnreadCounter ──────────────────────────────────────────────────────── */
.pt-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 5px;
  background: var(--accent); color: var(--on-accent); transform: skewX(var(--skew-badge));
}
.pt-count > span {
  transform: skewX(calc(var(--skew-badge) * -1));
  font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 80%; font-variation-settings: "wdth" 80; font-size: 11px; line-height: 1;
}

/* ── Tag (droit) ────────────────────────────────────────────────────────── */
.pt-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px;
  background: var(--panel-2); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 10px; line-height: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.pt-tag--md { padding: 6px 9px; }
.pt-tag--places { background: var(--accent-soft); color: var(--accent-soft-text); }
.pt-tag--accent { background: var(--accent); color: var(--on-accent); }
.pt-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── ChoiceChip ─────────────────────────────────────────────────────────── */
.pt-chip {
  appearance: none; margin: 0 3px; padding: 10px 14px; border: 0; cursor: pointer;
  background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
  transform: skewX(var(--skew-button));
  transition: background-color var(--duration-fast) var(--ease-out);
}
.pt-chip > span {
  display: inline-flex; align-items: center; gap: 6px; transform: skewX(calc(var(--skew-button) * -1));
  font-family: var(--font-body); font-weight: 700; font-size: 14px; line-height: 17px; white-space: nowrap;
}
.pt-chip--sm { padding: 8px 12px; }
.pt-chip--sm > span { font-size: 13px; }
.pt-chip[aria-pressed="true"], .pt-chip.is-active { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pt-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pt-chip__dot { width: 8px; height: 8px; border-radius: var(--radius-round); }
.pt-chips { display: flex; flex-wrap: wrap; row-gap: var(--space-3); column-gap: var(--space-2); margin: 0 -3px; }

/* ── Tabs soulignés ─────────────────────────────────────────────────────── */
.pt-tabs { display: flex; gap: 22px; padding: 0 var(--page-margin); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pt-tab {
  appearance: none; background: none; border: 0; margin: 0; padding: 12px 0 10px; position: relative; cursor: pointer; flex: none;
  font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-stretch: 78%; font-variation-settings: "wdth" 78; font-size: 15px; line-height: 1; letter-spacing: .02em;
  color: var(--dim); transition: color var(--duration-base) var(--ease-in-out);
}
.pt-tab[aria-selected="true"], .pt-tab.is-active { color: var(--ink); }
.pt-tab[aria-selected="true"]::after, .pt-tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); transform: skewX(var(--skew-bar));
}
.pt-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Panel (carte au coin coupé) ────────────────────────────────────────── */
.pt-panel { background: var(--panel); padding: var(--space-5); }

/* ── Avatar ─────────────────────────────────────────────────────────────── */
.pt-avatar {
  --pt-av: 44px; width: var(--pt-av); height: var(--pt-av); flex: none; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; background: var(--entity-1); color: var(--white);
  font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-stretch: 80%; font-variation-settings: "wdth" 80; font-size: calc(var(--pt-av) * .38); line-height: 1;
}
.pt-avatar--person { border-radius: var(--radius-round); }
.pt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pt-avatar--ring { box-shadow: 0 0 0 4px var(--page); }
.pt-avatar--seeking { box-shadow: 0 0 0 4px var(--page), 0 0 0 7px var(--accent); }

/* ── VerifiedBadge ──────────────────────────────────────────────────────── */
.pt-verified { width: 16px; height: 16px; flex: none; }
.pt-verified .seal { fill: var(--accent); }
.pt-verified .check { fill: none; stroke: var(--on-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── AuthorPlate ────────────────────────────────────────────────────────── */
.pt-plate { display: flex; align-items: stretch; text-decoration: none; color: inherit; }
.pt-plate__band {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-3);
  padding: 5px 22px 5px 12px; background: var(--panel);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--trapeze)) 100%, 0 100%);
}
.pt-plate__text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pt-plate__name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pt-plate__name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-plate__suffix { color: var(--accent-ink); }

/* ── ListRow ────────────────────────────────────────────────────────────── */
.pt-row {
  display: flex; align-items: center; gap: var(--space-4); padding: 14px var(--page-margin);
  border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; background: transparent;
  transition: background-color var(--duration-fast) var(--ease-out);
}
a.pt-row:hover, button.pt-row:hover { background: var(--row-hover); }
.pt-row__body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pt-row__title { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.pt-row__chevron { width: 18px; height: 18px; color: var(--icon-dim); flex: none; }
.pt-status { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); }
.pt-status::before { content: ""; width: 6px; height: 6px; background: var(--accent); transform: skewX(var(--skew-bar)); }

/* ── StatStrip ──────────────────────────────────────────────────────────── */
.pt-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--panel); --pt-cut: var(--cut-stat);
  clip-path: polygon(0 0, calc(100% - var(--pt-cut)) 0, 100% var(--pt-cut), 100% 100%, 0 100%); }
.pt-stats > div { padding: 12px 12px 11px; display: grid; gap: 5px; }
.pt-stats > div + div { border-left: 1px solid var(--line); }

/* ── InfoGrid / KeyValueList ────────────────────────────────────────────── */
.pt-info { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); }
.pt-info > div { background: var(--panel); padding: 12px; display: grid; gap: 4px; align-content: start; }
.pt-info > .is-wide { grid-column: 1 / -1; }
.pt-kv { background: var(--panel); }
.pt-kv > div { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 11px 12px; }
.pt-kv > div + div { border-top: 1px solid var(--line-soft); }
.pt-kv dt { color: var(--muted); font: 500 13px/1.3 var(--font-body); }
.pt-kv dd { margin: 0; text-align: right; font: 500 14px/1.35 var(--font-body); color: var(--ink); }

/* ── Champs ─────────────────────────────────────────────────────────────── */
.pt-field { display: grid; gap: 7px; }
.pt-field__label { font: 700 10px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pt-input {
  width: 100%; box-sizing: border-box; min-height: 46px; padding: 12px 14px; margin: 0;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 0;
  font: 400 15px/1.45 var(--font-body);
}
.pt-input::placeholder { color: var(--placeholder); }
.pt-input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); border-color: var(--accent); }
textarea.pt-input { min-height: 132px; resize: vertical; }
.pt-field__hint { display: flex; justify-content: space-between; gap: var(--space-4); font: 600 12px/16px var(--font-body); color: var(--dim); }
.pt-field__error { display: flex; align-items: center; gap: 5px; font: 600 12px/16px var(--font-body); color: var(--loss); }
.pt-field.is-error .pt-input { border-color: var(--loss); }

/* ── SearchField ────────────────────────────────────────────────────────── */
.pt-search {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; background: var(--panel); color: var(--muted);
  clip-path: polygon(0 0, calc(100% - var(--cut-md)) 0, 100% var(--cut-md), 100% 100%, 0 100%);
}
.pt-search:focus-within { box-shadow: inset 0 -1.5px 0 var(--accent); }
.pt-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; color: var(--ink); font: 400 15px/1.45 var(--font-body); }
.pt-search input:focus { outline: none; }
.pt-search input::placeholder { color: var(--placeholder); }
.pt-search svg { width: 18px; height: 18px; flex: none; }

/* ── RadioRow ───────────────────────────────────────────────────────────── */
.pt-radio {
  display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; cursor: pointer;
  background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--line);
}
.pt-radio input { position: absolute; opacity: 0; pointer-events: none; }
.pt-radio__mark { width: 18px; height: 18px; flex: none; display: grid; place-items: center; background: var(--page); box-shadow: inset 0 0 0 1.5px var(--line); transform: skewX(var(--skew-button)); }
.pt-radio__label { flex: 1; min-width: 0; font: 600 15px/1.3 var(--font-body); color: var(--ink); }
.pt-radio__meta { font: 500 13px/1.3 var(--font-body); color: var(--muted); }
.pt-radio:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--accent); }
.pt-radio:has(input:checked) .pt-radio__mark { box-shadow: inset 0 0 0 1.5px var(--accent); }
.pt-radio:has(input:checked) .pt-radio__mark::after { content: ""; width: 8px; height: 8px; background: var(--accent); }
.pt-radio:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-radios { display: grid; gap: var(--space-3); }

/* ── Switch ─────────────────────────────────────────────────────────────── */
.pt-switch { appearance: none; border: 0; margin: 0 3px; padding: 0 4px; width: 50px; height: 28px; cursor: pointer; display: inline-flex; align-items: center;
  background: var(--panel-2); transform: skewX(var(--skew-button)); transition: background-color var(--duration-fast) var(--ease-out); }
.pt-switch::after { content: ""; width: 20px; height: 20px; background: var(--muted); transition: transform var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out); }
.pt-switch[aria-checked="true"] { background: var(--accent); }
.pt-switch[aria-checked="true"]::after { background: var(--on-accent); transform: translateX(22px); }
.pt-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pt-switch-row { display: flex; align-items: center; gap: 13px; padding: 14px; background: var(--panel); }

/* ── StepNumber ─────────────────────────────────────────────────────────── */
.pt-step { width: 26px; height: 26px; flex: none; display: grid; place-items: center; background: var(--ink); transform: skewX(var(--skew-button)); }
.pt-step > span { transform: skewX(calc(var(--skew-button) * -1)); color: var(--on-ink);
  font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 80%; font-variation-settings: "wdth" 80; font-size: 15px; line-height: 1; }
.pt-step-heading { display: flex; align-items: center; gap: 12px; }

/* ── ShortcutTile ───────────────────────────────────────────────────────── */
.pt-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 14px; column-gap: var(--space-3); }
.pt-tile { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; display: grid; justify-items: center; gap: 7px; color: var(--ink);
  transition: transform var(--duration-fast) var(--ease-out); text-decoration: none; }
.pt-tile:active { transform: scale(var(--press-tile)); }
.pt-tile__square { width: 58px; height: 58px; position: relative; display: grid; place-items: center; background: var(--panel);
  clip-path: polygon(0 0, calc(100% - var(--cut-md)) 0, 100% var(--cut-md), 100% 100%, 0 100%); }
.pt-tile__square svg { width: 22px; height: 22px; stroke-width: 2.1; }
.pt-tile__count { position: absolute; top: -6px; right: -6px; }
.pt-tile__label { font: 700 11px/1.2 var(--font-body); color: var(--ink-2); text-align: center; }
.pt-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── DateBlock / DateBand ───────────────────────────────────────────────── */
.pt-date { width: 58px; flex: none; display: grid; justify-items: center; gap: 2px; padding: 8px 0; background: var(--panel); color: var(--muted);
  clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, 0 100%); }
.pt-date__day { font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 26px; line-height: 1; color: var(--accent-ink); }
.pt-date--accent { background: var(--accent); color: var(--on-accent); }
.pt-date--accent .pt-date__day { color: var(--on-accent); }
.pt-dateband { display: inline-flex; height: 52px; }
.pt-dateband > * { display: flex; align-items: center; padding: 0 12px; }
.pt-dateband__day { background: var(--accent); color: var(--on-accent); padding: 0 16px; font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 30px; }
.pt-dateband__when { background: var(--ink); color: var(--on-ink); white-space: pre-line; font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 80%; font-variation-settings: "wdth" 80; font-size: 13px; line-height: 14px; text-transform: uppercase; }
.pt-dateband__note { background: var(--panel-2); }

/* ── ScoreBug ───────────────────────────────────────────────────────────── */
.pt-scorebug { display: inline-flex; height: 36px; align-items: stretch; }
.pt-scorebug > * { display: flex; align-items: center; padding: 0 10px; }
.pt-scorebug__team { background: var(--page); font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 80%; font-variation-settings: "wdth" 80; font-size: 15px; text-transform: uppercase; color: var(--ink); }
.pt-scorebug__score { font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 24px; min-width: 18px; justify-content: center; }
.pt-scorebug__score--home { background: var(--accent); color: var(--on-accent); }
.pt-scorebug__score--away { background: var(--ink); color: var(--on-ink); }
.pt-scorebug__note { background: var(--panel-2); font: 700 9.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }

/* ── Résultats ──────────────────────────────────────────────────────────── */
.pt-results { background: var(--panel); padding: 12px 14px 6px; clip-path: polygon(0 0, calc(100% - var(--cut-result)) 0, 100% var(--cut-result), 100% 100%, 0 100%); }
.pt-results__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.pt-result { display: grid; grid-template-columns: 1fr 66px 1fr; align-items: center; gap: var(--space-3); padding: 8px 0; font: 500 14px/1.3 var(--font-body); color: var(--muted); }
.pt-result + .pt-result { border-top: 1px solid var(--line-soft); }
.pt-result .is-winner { font-weight: 800; color: var(--ink); }
.pt-result__score { text-align: center; font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 20px; color: var(--ink); }
.pt-result__score .is-winner { color: var(--accent); }
.pt-result > :last-child { text-align: right; }
.pt-outcome { width: 26px; height: 24px; display: inline-grid; place-items: center; transform: skewX(var(--skew-badge)); background: var(--win); }
.pt-outcome > span { transform: skewX(calc(var(--skew-badge) * -1)); color: var(--on-accent); font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 80%; font-variation-settings: "wdth" 80; font-size: 13px; }
.pt-outcome--loss { background: var(--loss); }

/* ── ProgressBar ────────────────────────────────────────────────────────── */
.pt-progress { display: flex; gap: 3px; height: 7px; }
.pt-progress > i { flex: 1; background: var(--track); transform: skewX(var(--skew-bar)); }
.pt-progress > i.is-on { background: var(--accent); }
.pt-progress--ink > i.is-on { background: var(--ink); }

/* ── ChatBubble ─────────────────────────────────────────────────────────── */
.pt-bubbles { display: grid; gap: 12px; }
.pt-bubble { max-width: 80%; display: grid; gap: 4px; justify-items: start; }
.pt-bubble__sender { font: 700 10px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.pt-bubble__body { padding: 10px 12px; background: var(--panel-2); color: var(--ink); font: 400 15px/1.45 var(--font-body);
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut-sm) 100%, 0 calc(100% - var(--cut-sm))); }
.pt-bubble__time { font: 500 10.5px/1.2 var(--font-body); color: var(--icon-dim); }
.pt-bubble--out { justify-self: end; justify-items: end; }
.pt-bubble--out .pt-bubble__body { background: var(--accent); color: var(--on-accent); font-weight: 500;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%); }
.pt-day { justify-self: center; padding: 3px 9px; background: var(--panel-2); font: 700 10px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.pt-toast { display: flex; align-items: center; gap: var(--space-4); padding: 14px var(--space-5); background: var(--ink); color: var(--on-ink);
  font: 700 14.5px/19px var(--font-body); max-width: 440px;
  clip-path: polygon(0 0, calc(100% - var(--cut-md)) 0, 100% var(--cut-md), 100% 100%, 0 100%);
  animation: pt-toast-in var(--duration-base) var(--ease-out) both; }
.pt-toast::before { content: ""; width: 7px; height: 20px; flex: none; background: var(--accent); transform: skewX(var(--skew-bar)); }
.pt-toast--danger::before { background: var(--loss); }
@keyframes pt-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Ticker ─────────────────────────────────────────────────────────────── */
.pt-ticker { display: flex; height: 34px; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.pt-ticker__label { flex: none; display: flex; align-items: center; padding: 0 22px 0 12px; background: var(--accent); color: var(--on-accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut-sm)) 100%, 0 100%);
  font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 80%; font-variation-settings: "wdth" 80; font-size: 13px; text-transform: uppercase; position: relative; z-index: 1; }
.pt-ticker__viewport { flex: 1; min-width: 0; overflow: hidden; }
.pt-ticker__track { display: flex; width: max-content; height: 100%; animation: pt-marquee var(--duration-ticker) linear infinite; }
.pt-ticker__item { display: flex; align-items: center; gap: 10px; padding: 0 14px; white-space: nowrap;
  font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 80%; font-variation-settings: "wdth" 80; font-size: 13px; text-transform: uppercase; color: var(--muted); }
.pt-ticker__item .is-winner { color: var(--ink); }
.pt-ticker__score { font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 15px; color: var(--accent-ink); }
.pt-ticker__sep { width: 4px; height: 12px; background: var(--accent); transform: skewX(var(--skew-bar)); flex: none; }
@keyframes pt-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pt-ticker__track { animation: none; } .pt-toast { animation: none; } }

/* ── MediaFrame ─────────────────────────────────────────────────────────── */
.pt-media { position: relative; height: 198px; background: var(--panel); overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--cut-media)) 0, 100% var(--cut-media), 100% 100%, 0 100%); }
.pt-media img, .pt-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-media__fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--icon-dim); }

/* ── TopBar ─────────────────────────────────────────────────────────────── */
.pt-topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: var(--space-4); height: 56px; padding: 0 12px;
  background: var(--page); border-bottom: 1px solid var(--line); }
.pt-topbar__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Squelette ──────────────────────────────────────────────────────────── */
.pt-skeleton { background: var(--panel); animation: pt-pulse var(--duration-pulse) ease-in-out infinite alternate; }
@keyframes pt-pulse { from { opacity: 1; } to { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .pt-skeleton { animation: none; } }
