.v-poster { background: #141210; font: 700 1rem/1.3 Archivo, system-ui, sans-serif; }
.po-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.po { position: relative; flex: 1; display: flex; flex-direction: column; padding: 1rem 1.125rem 1.25rem; background: var(--bg); color: var(--fg); overflow: hidden; }
.po.won { background: var(--fg); color: var(--bg); }
.po.lost { --bg: #141210; --fg: #f6f1e4; }
.v-poster :focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.po-top { display: flex; align-items: baseline; justify-content: space-between; font-stretch: 112%; }
.po-top h1 { font-size: 0.9375rem; font-weight: 800; letter-spacing: 0.01em; }
.po-top span { font-size: 0.9375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.po-top small { opacity: 0.6; }

.po-name { margin-top: 0.75rem !important; font-weight: 900; font-stretch: 62%; line-height: 0.86; letter-spacing: -0.02em; text-transform: uppercase; overflow: hidden; }
.po-name span { display: block; white-space: nowrap; }

/* hint tapes: blank and dashed until pulled, then a running band of the answer */
.po-bands { display: grid; gap: 0.75rem; margin: 1.5rem -2rem 0; }
.po-band { display: flex; align-items: center; justify-content: space-between; height: 2.75rem; padding: 0 2.75rem; border: 0; border-block: 3px dashed currentColor; background: none; color: inherit; font-size: 1.0625rem; font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.02em; overflow: hidden; }
.po-band.b0 { rotate: -2.5deg; }
.po-band.b1 { rotate: 1.75deg; }
.po-band:disabled { opacity: 0.4; cursor: default; }
.po-cost { padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 0.8125rem; }
.po.won .po-cost { background: var(--bg); color: var(--fg); }
.po-band.pulled { padding: 0; border: 0; background: var(--fg); color: var(--bg); }
.po.won .po-band.pulled { background: var(--bg); color: var(--fg); }
.po-run { display: flex; flex: none; }
.po-run span { flex: none; padding-inline: 0.875rem; white-space: nowrap; }
.po-run span::after { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 1.75rem; border-radius: 50%; background: currentColor; opacity: 0.6; vertical-align: 0.08em; }

.po-not { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 1.25rem !important; font-size: 1.5rem; font-weight: 900; font-stretch: 75%; line-height: 1.1; text-transform: uppercase; }
.po-not s { text-decoration-thickness: 0.16em; opacity: 0.75; }

.po-points { position: absolute; right: 0.75rem; top: 52%; font-size: 9.5rem; font-weight: 900; font-stretch: 62%; line-height: 0.8; color: transparent; -webkit-text-stroke: 3px var(--fg); pointer-events: none; }
.po.won .po-points { -webkit-text-stroke-color: var(--bg); }

/* typing straight onto the poster; the real input lies over the line, unseen */
.po-entry { margin-top: auto; display: grid; gap: 0.75rem; position: relative; z-index: 1; }
.po-type { position: relative; display: block; padding-bottom: 0.4rem; border-bottom: 4px solid currentColor; cursor: text; }
.po-type input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 1rem; }
.po-line { display: block; min-height: 2.6rem; font-size: 2.125rem; font-weight: 900; font-stretch: 75%; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-typed::after { content: ""; display: inline-block; width: 0.09em; height: 0.9em; margin-inline: 0.04em; background: currentColor; vertical-align: -0.08em; }
.po-ghost { opacity: 0.5; white-space: pre; }
.po-type:not(:focus-within) .po-typed::after { opacity: 0; }
.po-alts { display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 2.75rem; }
.po-alts li { display: grid; place-items: center; min-height: 2.75rem; padding: 0 0.875rem; border: 2.5px solid currentColor; border-radius: 999px; font-weight: 800; cursor: pointer; }
.po-alts li[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.po-giveup { justify-self: start; border: 0; background: none; padding: 0.25rem 0; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.po-end { margin-top: auto; display: grid; gap: 0.75rem; position: relative; z-index: 1; }
.po-answer { font-weight: 900; font-stretch: 62%; line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase; overflow: hidden; white-space: nowrap; }
.po-answer span { display: block; }
.po-note { max-width: 22rem; font-size: 0.9375rem; font-weight: 600; font-stretch: 100%; text-wrap: pretty; }
.po-note::first-letter { text-transform: uppercase; }
.po-next { height: 3.25rem; border: 0; border-radius: 999px; background: var(--bg); color: var(--fg); font-size: 1.0625rem; font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.02em; transition: scale 150ms ease-out; }
.po:not(.won) .po-next { background: var(--fg); color: var(--bg); }

.po-sum { flex: 1; display: flex; flex-direction: column; color: #f6f1e4; }
.po-sum section { position: relative; flex: 1; display: grid; align-content: center; gap: 0.2rem; padding: 0.75rem 5.5rem 0.75rem 1.125rem; background: var(--bg); color: var(--fg); }
.po-sum section p { font-size: 0.9375rem; font-weight: 800; }
.po-sum section h2 { font-size: 2.25rem; font-weight: 900; font-stretch: 62%; line-height: 0.92; text-transform: uppercase; overflow-wrap: anywhere; }
.po-sum section span { position: absolute; right: 1rem; top: 50%; translate: 0 -50%; font-size: 5rem; font-weight: 900; font-stretch: 62%; line-height: 1; color: transparent; -webkit-text-stroke: 2.5px var(--fg); }
.po-sum footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.125rem 1.25rem; --bg: #141210; --fg: #f6f1e4; }
.po-sum footer strong { font-size: 3.5rem; font-weight: 900; font-stretch: 62%; line-height: 1; }
.po-sum footer small { opacity: 0.6; }
.po-sum .po-next { padding-inline: 2rem; background: #f6f1e4; color: #141210; }

@media (prefers-reduced-motion: no-preference) {
  .po.enter .po-name span { animation: po-rise 620ms cubic-bezier(0.2, 0, 0, 1) both; animation-delay: calc(var(--w, 0) * 90ms); }
  .po.enter .po-name span:nth-child(2) { --w: 1; }
  .po.enter .po-name span:nth-child(3) { --w: 2; }
  .po.enter .po-bands { animation: po-slide 620ms cubic-bezier(0.2, 0, 0, 1) 160ms both; }
  .po.enter .po-entry, .po.enter .po-points { animation: po-fade 500ms ease-out 320ms both; }
  .po.flash { animation: po-flash 300ms steps(2, jump-none) both; }
  .po.turn { animation: po-turn 520ms cubic-bezier(0.2, 0, 0, 1) both; }
  .po.turn .po-answer span { animation: po-rise 620ms cubic-bezier(0.2, 0, 0, 1) 160ms both; }
  .po-band.pulled .po-run { animation: po-run 16s linear infinite; }
  .po-band.b1.pulled .po-run { animation-direction: reverse; }
  .po-band.rip { animation: po-rip 420ms cubic-bezier(0.2, 0, 0, 1) both; }
  .po-not .slam { animation: po-slam 300ms cubic-bezier(0.2, 0, 0, 1) both; }
  .po-points.roll { animation: po-roll 380ms cubic-bezier(0.2, 0, 0, 1) both; }
  .po-typed::after { animation: po-caret 1s steps(2, start) infinite; }
  .po-next:active { scale: 0.96; }
}
@keyframes po-rise { from { transform: translateY(105%); opacity: 0; } }
@keyframes po-slide { from { transform: translateX(-40%); opacity: 0; } }
@keyframes po-fade { from { opacity: 0; } }
@keyframes po-flash { 50% { filter: invert(1); } }
@keyframes po-turn { from { clip-path: circle(0% at 50% 85%); } to { clip-path: circle(150% at 50% 85%); } }
@keyframes po-run { to { transform: translateX(-50%); } }
@keyframes po-rip { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes po-slam { from { scale: 2.4; opacity: 0; } }
@keyframes po-roll { from { transform: translateY(-35%); opacity: 0; } }
@keyframes po-caret { to { opacity: 0; } }
