/* "What broke before hard-to-vary v0": uses the blog's tokens (--paper, --ink, --muted, --hairline, --sunk, --clay, --serif, --u, --wide). */
.htv {
  width: min(var(--wide, 62rem), 100vw - 2 * var(--u, 0.5rem) * 3);
  margin: calc(var(--u, .5rem) * 3) 0 calc(var(--u, .5rem) * 5) 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
}
.htv-fallback { display: block; width: 100%; height: auto; border: 1px solid var(--hairline); border-radius: 2px; }
.htv.htv-ready .htv-fallback { display: none; }
.htv-app { display: none; }
.htv.htv-ready .htv-app { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(15rem, 1fr); gap: calc(var(--u) * 3); align-items: start; }
.htv-headline { display: none; margin-bottom: calc(var(--u) * 1.5); }
.htv.htv-ready .htv-headline { display: block; }
.htv-kicker { font-size: var(--small); color: var(--clay); letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
.htv-title { font-size: var(--lead); line-height: 1.3; }
.htv-stage { position: relative; aspect-ratio: 960 / 500; background: var(--sunk, #F1EFEA); overflow: hidden; border: 1px solid var(--hairline); border-radius: 2px; }
.htv-frame, .htv-frame-b { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .22s ease; }
.htv-frame.on, .htv-frame-b.on { opacity: 1; }
.htv-panel { display: flex; flex-direction: column; gap: calc(var(--u) * 2); }
.htv-range { width: 100%; accent-color: var(--ink); }
.htv-ticks { display: flex; justify-content: space-between; font-size: var(--small); color: var(--muted); margin-top: -8px; }
.htv-ticks span { cursor: pointer; }
.htv-ticks span[aria-current="true"] { color: var(--ink); font-weight: 600; }
.htv-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.htv-rules-label { font-size: var(--small); color: var(--muted); width: 100%; display: block; }
.htv-rule { font: inherit; font-size: var(--small); padding: 4px 10px; border: 1px solid var(--hairline); background: var(--paper); color: var(--ink); border-radius: 999px; cursor: pointer; }
.htv-rule[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.htv-verdict { border-left: 3px solid var(--ink); padding-left: calc(var(--u) * 1.5); }
.htv-verdict a { display: inline-block; margin-top: 4px; font-size: var(--small); }
.htv-doors { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--small); }
.htv figcaption { font-size: var(--small); color: var(--muted); margin-top: calc(var(--u) * 1.5); }
@media (max-width: 760px) { .htv.htv-ready .htv-app { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .htv-frame, .htv-frame-b { transition: none; } }
