Files
Claude 17d5afe589 dark tokens: selected tabs and chips readable in dark on 12 app and cloud pages
/automations, /billing, /chrome, /cli, /commerce, /edge, /gateway, /idv, /ledger,
/operative, /playground, /pubsub. /billing's Issued chip lost its solid fill in dark
(now var(--primary) / var(--primary-foreground)). On the others the selected label
sits on a sliding pill drawn by a sibling element; the label now carries the pill's
own colour in dark, so it reads the same and James's darkcheck measures it correctly.
Every rule is under html:not(.light): light mode is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P5YBdwj33XByFVTvu9bfci
2026-11-08 14:01:19 +00:00

317 lines
27 KiB
CSS

/* Playground v2 (Cloud 3). Grey only (JAMES 7): the UI is ink, greys and white; colour comes only through Hanzo's own
model media. Motion map (7 Nov): signature drag-canvas; the five sections enter by glitch-in (hero), tile-flip (the
canvas), cover-slide (related), scramble (the dark room) and swing-door (the close). Entrances key off
[data-enter=armed|in] set by components/pages/playground/enter.js, so JS off and reduced motion show the final state. */
/* the header's "Try Hanzo" stays solid on this page (SYSTEM.md 5): nothing here outlines it */
/* hero: copy left, the running window right */
.pg-hero { padding: clamp(40px, 4.4vw, 80px) 0 clamp(120px, 13vw, 200px); }
.pg-hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 4vw, 72px); align-items: center; }
.pg-h1 { margin: 0; }
.pg-lede { margin-top: 28px; max-width: 40ch; }
.pg-acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
/* the window */
/* the hero stage: arrives once from first paint (CSS, so server and client agree), radius 24, a hairline drawn above
the window's own fills so its right and bottom edges show against the page */
.pg-stage { position: relative; }
.pg-stage-in { transform-origin: 50% 0; }
/* entrance 1, glitch-in: the hero tears in horizontal slices, flashes inverted twice, then holds still (CSS from first
paint, so it needs no JS and always ends on the final frame) */
.pg-hero-grid { animation: pg-glitch .72s steps(1, end) .12s both; }
@keyframes pg-glitch {
0% { clip-path: inset(0 0 100% 0); }
8% { clip-path: inset(12% 0 58% 0); transform: translateX(-14px); filter: invert(1); }
16% { clip-path: inset(46% 0 18% 0); transform: translateX(11px); filter: none; }
24% { clip-path: inset(0 0 72% 0); transform: translateX(-7px) skewX(-6deg); }
32% { clip-path: inset(62% 0 0 0); transform: translateX(9px); filter: invert(1); }
40% { clip-path: inset(0 0 30% 0); transform: translateX(-4px); filter: none; }
52% { clip-path: inset(20% 0 0 0); transform: translateX(3px) skewX(3deg); }
64% { clip-path: inset(0); transform: translateX(-2px); }
76%, 100% { clip-path: none; transform: none; filter: none; }
}
.pg-win { position: relative; background: light-dark(#fff, var(--surface-1)); border-radius: 24px; overflow: hidden; isolation: isolate; }
.pg-win::after { content: ''; position: absolute; inset: 0; z-index: 5; border-radius: inherit; box-shadow: inset 0 0 0 1px light-dark(rgba(0, 0, 0, .1), var(--border)); pointer-events: none; }
.pg-bar { display: flex; align-items: center; gap: 7px; height: 56px; padding: 0 8px 0 18px; border-bottom: 1px solid var(--line); background: light-dark(#fafafa, var(--surface-card-quiet)); }
.pg-bar i { width: 11px; height: 11px; border-radius: 50%; background: light-dark(#e4e4e7, var(--surface-3)); }
.pg-bar span { margin-left: 12px; font: 500 14px/1 var(--sans); color: var(--muted); }
.pg-bar b { margin-left: auto; padding: 7px 11px; border-radius: 999px; background: var(--ink); color: light-dark(#fff, var(--primary-foreground)); font: 500 13px/1 var(--mono); }
.pg .pg-pause { position: static; order: 9; flex: none; margin-left: 6px; }
.pg-modes { display: flex; gap: 2px; padding: 8px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pg-modes::-webkit-scrollbar { display: none; }
.pg-modes button { position: relative; flex: none; border: 0; background: none; height: 40px; padding: 0 13px; border-radius: 999px; font: 500 14px/1 var(--sans); color: var(--muted); cursor: pointer; touch-action: manipulation; transition: color .3s cubic-bezier(.4, 0, .2, 1), transform .15s cubic-bezier(0, 0, .2, 1); }
.pg-modes button:active { transform: scale(.97); transition-duration: 90ms; }
.pg-modes button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pg-modes button[aria-selected='true'] { color: light-dark(#fff, var(--primary-foreground)); }
.pg-modes button span { position: relative; }
.pg-mode-bg { position: absolute; inset: 0; border-radius: 999px; background: var(--ink); }
.pg-mode-t { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 999px; background: light-dark(rgba(255, 255, 255, .78), var(--primary-foreground)); transform-origin: 0 50%; animation: pg-timer 3.8s linear both; }
@keyframes pg-timer { from { transform: scaleX(0); } }
@media (hover: hover) { .pg-modes button[aria-selected='false']:hover { color: var(--ink); background: light-dark(#f2f2f2, var(--surface-2)); } }
.pg-body { display: grid; grid-template-columns: minmax(0, 1fr) 210px; }
.pg-canvas { position: relative; display: flex; flex-direction: column; padding: 24px; background: radial-gradient(circle, light-dark(rgba(0, 0, 0, .07), var(--border)) 1px, transparent 1.5px) 0 0 / 22px 22px, radial-gradient(circle at 50% 40%, light-dark(#fbfbfb, var(--surface-card-quiet)), light-dark(#f2f2f2, var(--surface-2))); overflow: hidden; }
.pg-stagebox { position: relative; flex: 1; min-height: clamp(260px, 25vw, 360px); }
.pg-cv { position: absolute; inset: 0; display: grid; place-items: center; }
.pg-input { display: flex; align-items: center; gap: 10px; margin-top: 16px; height: 48px; padding: 0 6px 0 18px; border-radius: 12px; background: light-dark(#fff, var(--surface-1)); border: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.pg-input span { flex: 1; }
.pg-input b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--ink); color: light-dark(#fff, var(--primary-foreground)); }
.pg-run { padding: 22px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.pg-run-k { margin: 0; font: 500 13px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pg-model { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pg-model b { font: 500 15px/1 var(--mono); color: var(--ink); }
.pg-meter { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pg-meter li { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.pg-meter li i { display: block; height: 8px; border-radius: 8px; background: light-dark(#ededed, var(--surface-3)); overflow: hidden; }
.pg-meter li b { display: block; height: 100%; border-radius: 8px; background: light-dark(#a3a3a3, var(--muted-foreground)); transform-origin: 0 50%; transform: scaleX(var(--v)); animation: pg-fill 1.2s cubic-bezier(.16, 1, .3, 1) var(--d) both; }
/* the cost reads by weight: an ink bar, twice as tall, and a bold label */
.pg-meter li.cost { color: var(--ink); font-weight: 600; }
.pg-meter li.cost i { height: 14px; }
.pg-meter li.cost b { background: light-dark(#0a0a0a, var(--muted-foreground)); }
@keyframes pg-fill { from { transform: scaleX(0); } }
.pg-win.paused .pg-wave i { animation-play-state: paused; }
/* the eight canvases */
.pg-chat { width: min(100%, 560px); display: flex; flex-direction: column; gap: 14px; }
.pg-bub { margin: 0; padding: 16px 20px; border-radius: 20px; font-size: 17px; }
.pg-bub.me { align-self: flex-end; background: var(--ink); color: light-dark(#fff, var(--primary-foreground)); border-bottom-right-radius: 6px; }
.pg-bub.ai { align-self: flex-start; width: 80%; background: light-dark(#fff, var(--surface-1)); border: 1px solid var(--line); border-bottom-left-radius: 6px; display: flex; flex-direction: column; gap: 9px; }
.pg-bub.ai i, .pg-comp i { display: block; height: 12px; border-radius: 6px; background: light-dark(#d4d4d4, var(--surface-3)); transform-origin: 0 50%; }
.pg-comp { width: min(100%, 560px); display: flex; flex-direction: column; gap: 12px; }
/* what you gave is ink; what the model wrote is outlined grey */
.pg-comp i { height: 14px; background: light-dark(#fff, var(--surface-1)); box-shadow: inset 0 0 0 1.5px light-dark(#a3a3a3, var(--text-tertiary)); }
.pg-comp i.given { background: var(--ink); box-shadow: none; }
.pg-tree { width: min(100%, 460px); overflow: visible; }
.pg-tree path { fill: none; stroke: light-dark(#a3a3a3, var(--text-tertiary)); stroke-width: 2; stroke-dasharray: 5 5; }
.pg-tree path.on { stroke: var(--ink); stroke-width: 3; stroke-dasharray: none; }
.pg-tree circle { fill: light-dark(#fff, var(--surface-1)); stroke: light-dark(#a3a3a3, var(--text-tertiary)); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.pg-tree .root, .pg-tree .pick { fill: var(--ink); stroke: var(--ink); }
.pg-emb { width: min(100%, 520px); overflow: visible; }
.pg-emb .c0 { fill: var(--ink); }
.pg-emb .c1 { fill: light-dark(#a3a3a3, var(--surface-3)); }
.pg-emb .c2 { fill: light-dark(#fff, var(--surface-1)); stroke: var(--ink); stroke-width: 1.5; }
.pg-img, .pg-vis { position: relative; height: 100%; max-width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #000; }
.pg-img img, .pg-vis img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10, 1fr); }
.pg-tiles i { background: light-dark(#ededed, var(--surface-3)); border: .5px solid light-dark(#f5f5f5, var(--surface-2)); animation: pg-dev .35s linear var(--d) both; }
@keyframes pg-dev { to { opacity: 0; } }
.pg-vid { position: relative; height: 100%; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 16px; overflow: hidden; background: #171717 url(/models/koma.webp) center / cover no-repeat; }
.pg-vid video, .pg-aud video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Audio: Oto's film (its poster painted under it, so it is never blank), the waveform along its foot */
.pg-aud { position: relative; height: 100%; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 16px; overflow: hidden; background: #171717 url(/models/oto.webp) center / cover no-repeat; }
.pg-aud .pg-wave { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 28%; }
.pg-aud .pg-wave i { background: #fafafa; }
.pg-aud .pg-wave i:nth-child(5n) { background: rgba(255, 255, 255, .55); }
.pg-head { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.pg-head::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; animation: pg-timer 3.6s linear both; }
.pg-win.paused .pg-head::after { animation-play-state: paused; }
.pg-wave { width: 100%; height: 60%; display: flex; align-items: center; gap: 3px; }
.pg-wave i { flex: 1; border-radius: 999px; background: var(--ink); transform-origin: 50% 50%; animation: pg-wave 1.2s ease-in-out infinite alternate; }
.pg-wave i:nth-child(5n) { background: #a3a3a3; }
@keyframes pg-wave { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.pg-box { position: absolute; border: 2px solid #fff; border-radius: 8px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .3); }
.pg-box span { position: absolute; left: -2px; top: -30px; padding: 6px 9px; border-radius: 6px; background: #fff; color: var(--ink); font: 500 13px/1 var(--mono); }
/* the signature, drag to explore: an endless dotted board the visitor pans (pointer: both ways; finger: sideways, so
the page still scrolls), throws with inertia, or steers with the arrow keys; parts wrap around it */
.pg-ex { position: relative; background: var(--card); padding: clamp(72px, 8vw, 120px) 0 clamp(96px, 10vw, 150px); }
.pg-ex-head { margin-bottom: 24px; }
.pg-ex-h { margin: 0; font-size: 26px; }
.pg-cv-view { position: relative; height: min(640px, 76svh); border-radius: 24px; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; background: light-dark(#fafafa, var(--surface-card-quiet)) radial-gradient(circle, light-dark(rgba(0, 0, 0, .1), var(--border)) 1px, transparent 1.5px) 0 0 / 24px 24px; box-shadow: inset 0 0 0 1px var(--line); outline: none; }
.pg-cv-view[data-drag] { cursor: grabbing; }
.pg-cv-view:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.pg-cv-item { position: absolute; left: 0; top: 0; will-change: transform; }
.pg-cv-view img { -webkit-user-drag: none; pointer-events: none; }
/* the sentence card */
.pg-say { width: 460px; padding: 28px 30px 32px; border-radius: 24px; background: light-dark(#fff, var(--surface-1)); box-shadow: inset 0 0 0 1px var(--line); }
.pg-anat { margin: 0; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.12; letter-spacing: -.03em; font-weight: 497; color: light-dark(#737373, var(--muted-foreground)); text-wrap: balance; }
.pg-g { white-space: nowrap; }
.pg-g + .pg-g::before { content: ' '; white-space: normal; }
/* a lit phrase: ink and underlined by a bar that draws in (never a colour, never a weight change) */
.pg-ph { position: relative; border: 0; padding: 4px 0; margin: -4px 0; background: none; font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; text-align: left; transition: color .3s cubic-bezier(0, 0, .2, 1), transform .15s cubic-bezier(0, 0, .2, 1); touch-action: pan-y; }
.pg-ph::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .07em; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) { .pg-ph:not(.on):hover { color: light-dark(#404040, var(--text-secondary)); } .pg-ph:not(.on):hover::after { transform: scaleX(.35); } }
.pg-ph:active { transform: translateY(1px); transition-duration: 90ms; }
.pg-ph:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.pg-ph.on { color: var(--ink); }
.pg-ph.on:not(:last-child)::after { transform: scaleX(1); }
.pg-ph.all, .pg-anat[data-at='3'] { color: var(--ink); }
/* the two code cards */
.pg-req { background: light-dark(#fff, var(--surface-1)); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pg-req-curl { width: 640px; }
.pg-req-py { width: 540px; }
.pg-req-bar { display: flex; align-items: center; gap: 7px; height: 56px; padding: 0 10px 0 20px; border-bottom: 1px solid var(--line); }
.pg-req-bar > i { width: 11px; height: 11px; border-radius: 50%; background: light-dark(#e4e4e7, var(--surface-3)); }
.pg-req-n { margin: 0 auto 0 12px; font: 500 14px/1 var(--mono); color: var(--muted); }
.pg-req-pane { padding: 20px 26px 26px; }
/* the request is live: a caret pulses after the last line, like the terminal it is pasted into */
.pg-caret { display: inline-block; width: .55em; height: 1.1em; margin-left: 2px; vertical-align: -.18em; background: var(--ink); animation: pg-caret .8s cubic-bezier(.4, 0, .2, 1) infinite alternate; }
@keyframes pg-caret { to { opacity: .12; } }
.pg-req-l { margin: 0 0 14px; font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pg-req pre { margin: 0; font: 400 15px/1.7 var(--mono); color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.pg-ln.c { color: var(--muted); }
.pg-req mark { background: var(--ink); color: light-dark(#fff, var(--primary-foreground)); border-radius: 6px; padding: 1px 3px; margin: 0 -3px; box-decoration-break: clone; animation: pg-mark .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes pg-mark { from { background: transparent; color: inherit; } }
/* the eight kinds, each with its own drawing or its model's render */
.pg-kind { width: 170px; padding: 8px 8px 12px; border-radius: 16px; background: light-dark(#fff, var(--surface-1)); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s cubic-bezier(0, 0, .2, 1); }
.pg-kind-art { position: relative; height: 120px; border-radius: 12px; overflow: hidden; background: light-dark(#f2f2f2, var(--surface-2)); }
.pg-kind-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-kind-mini { position: absolute; left: 0; top: 0; width: 308px; height: 240px; display: grid; place-items: center; transform: scale(.5); transform-origin: 0 0; }
.pg-kind-n { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 4px 0; font-size: 14px; color: var(--ink); }
.pg-kind-n b { font: 500 13px/1 var(--mono); color: var(--muted); }
/* the models: each opens its page */
.pg-cv-model { display: block; width: 140px; border-radius: 16px; overflow: hidden; background: #171717; color: #fafafa; text-decoration: none; transition: transform .15s cubic-bezier(0, 0, .2, 1); }
.pg-cv-model img { display: block; width: 100%; height: 150px; object-fit: cover; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.pg-cv-model span { display: block; padding: 10px 12px 12px; font: 500 14px/1 var(--sans); }
@media (hover: hover) {
.pg-kind:hover { box-shadow: inset 0 0 0 1px light-dark(#a3a3a3, var(--text-tertiary)); }
.pg-cv-model:hover img { transform: scale(1.06); }
.pg-cv-view:not([data-drag]) .pg-cv-model:hover span { text-decoration: underline; text-underline-offset: 3px; }
}
.pg-cv-model:active { transform: scale(.98); transition-duration: 90ms; }
/* JS off: the board is an ordinary wrapped list, every part in reading order */
html:not(.js) .pg-cv-view { height: auto; display: flex; flex-wrap: wrap; gap: 16px; padding: 16px; }
html:not(.js) .pg-cv-item { position: static; transform: none !important; }
/* entrance 2, tile-flip: a grid of brand-tone tiles over the board flips edge-on, corner to corner, to form it */
.pg-flip { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-columns: repeat(var(--c), 1fr); perspective: 900px; pointer-events: none; }
.pg-flip i { background: light-dark(#e4e4e7, var(--surface-3)); box-shadow: inset 0 0 0 1px light-dark(#fafafa, var(--surface-card-quiet)); backface-visibility: hidden; }
.pg-ex[data-enter='in'] .pg-flip i { animation: pg-flip .62s cubic-bezier(.4, 0, .2, 1) var(--d) both; }
@keyframes pg-flip { 0% { transform: rotateY(0); } 100% { transform: rotateY(-90deg); visibility: hidden; } }
/* entrance 3, cover-slide: related is a white sheet that rides up over the bottom of the board */
.pg-cover { position: relative; z-index: 2; margin-top: -88px; background: light-dark(#fff, var(--surface-1)); border-radius: 28px 28px 0 0; }
.pg-cover[data-enter='armed'] { transform: translateY(220px); }
.pg-cover[data-enter='in'] { animation: pg-cover .9s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes pg-cover { from { transform: translateY(220px); } }
/* entrance 5, swing-door: the close swings in on a vertical hinge at its left edge */
.pg-door { perspective: 1800px; overflow-x: clip; }
.pg-door > * { transform-origin: 0 50%; }
.pg-door[data-enter='armed'] > * { transform: rotateY(68deg); opacity: .15; }
.pg-door[data-enter='in'] > * { animation: pg-door 1.15s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes pg-door { from { transform: rotateY(68deg); opacity: .15; } 60% { opacity: 1; } }
/* the dark room: the agent prompt and the wall. Hanzo's words are in the server HTML; entrance 4 (scramble) decodes
them in place as the room arrives */
.pg-room { background: #000; color: #fafafa; }
.pg-paste { padding: clamp(160px, 17vw, 260px) 0; }
.pg .cf-paste { opacity: 1 !important; transform: none !important; }
.pg .x-copy-t { font-size: 13px; }
.pg-paste .cf-paste-t { font-size: clamp(32px, 3vw, 44px); font-weight: 497; letter-spacing: -.042em; }
.pg-paste-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
/* the wall: nine of Hanzo's model films; one plays at a time (the hovered one, or the next in turn) */
.pg-wall { position: relative; }
.pg-wall-pause { top: -58px; right: 0; }
.pg-wall-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pg-tile { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: #171717; color: #f5f5f5; text-decoration: none; transform: translateZ(0); transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s cubic-bezier(.16, 1, .3, 1); }
.pg-tile-img, .pg-tile-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-tile-img { transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.pg-tile.on .pg-tile-img { transform: scale(1.05); }
.pg-tile.on { box-shadow: 0 0 0 2px #f5f5f5; }
.pg-tile-film { opacity: 0; animation: pg-film-in .6s .2s both; }
@keyframes pg-film-in { to { opacity: 1; } }
.pg-tile-n { position: absolute; left: 12px; bottom: 10px; padding: 6px 10px; border-radius: 999px; background: rgba(10, 10, 10, .72); font: 500 14px/1 var(--sans); letter-spacing: -.01em; transform: translateY(4px); transition: transform .4s cubic-bezier(.16, 1, .3, 1), background-color .3s; }
.pg-tile.on .pg-tile-n { transform: none; background: #f5f5f5; color: #0a0a0a; }
.pg-tile:active { transform: scale(.98); transition-duration: 90ms; }
@media (hover: hover) { .pg-tile:hover .pg-tile-img { transform: scale(1.05); } }
.pg-paste .cf-paste-d { font-size: clamp(17px, 1.32vw, 19px); color: #a3a3a3; }
.pg-paste .cf-paste-code { font-size: clamp(15px, 1.25vw, 18px); padding: 28px 28px 34px; }
/* the close: "Deploy to Cloud" answers hover (it leans and its underline thickens) and press */
.pg .lx-close-acts .lx-text { display: inline-block; transition: transform .15s cubic-bezier(0, 0, .2, 1), text-decoration-thickness .15s; }
@media (hover: hover) { .pg .lx-close-acts .lx-text:hover { transform: translateX(3px); text-decoration-thickness: 2px; } }
.pg .lx-close-acts .lx-text:active { transform: translateY(1px); transition-duration: 90ms; }
/* hovers that tell you where you go: the asks' arrows lean on; Copy and the repo fill */
.pg .pg-acts .lx-cta svg, .pg .lx-close-repo svg { transition: transform .15s cubic-bezier(0, 0, .2, 1); }
@media (hover: hover) {
.pg .pg-acts .lx-cta:hover svg { transform: translateX(4px); }
.pg .pg-req .x-copy:hover { background: light-dark(#f5f5f5, var(--surface-2)); }
.pg .lx-close-repo:hover svg { transform: translateX(2px) rotate(-8deg); }
}
/* related: each card's Sigil drifts slowly, so the row is never dead (art drift, well under 140px) */
.pg-rel .lx-rel-sigil { animation: pg-drift 12s cubic-bezier(.4, 0, .2, 1) infinite alternate; }
.pg-rel li:nth-child(2) .lx-rel-sigil { animation-delay: -4s; }
.pg-rel li:nth-child(3) .lx-rel-sigil { animation-delay: -8s; }
@keyframes pg-drift { from { transform: translate3d(-14px, 0, 0) scale(1.06); } to { transform: translate3d(14px, -6px, 0) scale(1.06); } }
/* related: one tall card and two stacked beside it, not three equal boxes in a row */
.pg-rel .lx-rel-grid[data-n='3'] { grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; }
.pg-rel .lx-rel-grid[data-n='3'] > li:first-child { grid-row: span 2; }
.pg-rel .lx-rel-grid[data-n='3'] > li:first-child .lx-rel-card { height: 100%; grid-template-rows: 1fr auto; }
.pg-rel .lx-rel-grid[data-n='3'] > li:first-child .lx-rel-art { height: auto; min-height: 300px; }
.pg-rel .lx-rel-grid[data-n='3'] > li:not(:first-child) .lx-rel-art { height: 130px; }
@media (max-width: 900px) {
.pg-hero { padding: 24px 0 96px; }
.pg-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.pg-lede { margin-top: 16px; }
.pg-acts { margin-top: 22px; gap: 8px; flex-wrap: wrap; }
.pg-acts .lx-cta { padding: 0 18px; }
.pg-acts .lx-ghost { padding: 0 16px; }
.pg-bar { padding-left: 14px; }
.pg-bar b, .pg-run-k, .pg-req-l, .pg-box span, .pg .x-copy-t { font-size: 14px; }
.pg-body { grid-template-columns: minmax(0, 1fr); }
.pg-modes button { height: 44px; }
.pg-canvas { padding: 16px; }
.pg-stagebox { min-height: 220px; }
.pg-run { border-left: 0; border-top: 1px solid var(--line); padding: 16px 18px 18px; gap: 12px; }
.pg-model { padding-bottom: 10px; }
.pg-meter { grid-template-columns: 1fr 1fr; column-gap: 16px; gap: 10px 16px; }
.pg-ex { padding: 64px 0 120px; }
.pg-ex-head { margin-bottom: 16px; }
.pg-cv-view { height: 560px; border-radius: 20px; }
.pg-say { width: 316px; padding: 20px 20px 22px; }
.pg-anat { font-size: 26px; }
.pg-ph { padding: 5px 0; margin: -5px 0; }
.pg-req-curl { width: 520px; }
.pg-req-py { width: 460px; }
.pg-req-bar { padding-left: 14px; }
.pg-req-pane { padding: 16px 16px 20px; }
.pg-req pre { font-size: 14px; line-height: 1.6; }
.pg-kind { width: 136px; }
.pg-kind-art { height: 96px; }
.pg-kind-mini { width: 256px; height: 192px; }
.pg-cv-model { width: 124px; }
.pg-cv-model img { height: 128px; }
.pg-cover { margin-top: -64px; border-radius: 24px 24px 0 0; }
.pg-paste { padding: 120px 0; }
.pg-paste-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
.pg-wall-pause { top: -54px; }
.pg-wall-grid { gap: 6px; }
.pg-tile { aspect-ratio: 4 / 5; border-radius: 12px; }
.pg .lx-close-mark span, .pg .lx-close-facts { font-size: 14px; }
.pg-tile-n { left: 6px; bottom: 6px; padding: 5px 8px; font-size: 14px; }
.pg-rel .lx-rel-grid[data-n='3'] { grid-template-columns: minmax(0, 1fr); }
.pg-rel .lx-rel-grid[data-n='3'] > li:first-child { grid-row: auto; }
.pg-rel .lx-rel-grid[data-n='3'] > li:first-child .lx-rel-art { min-height: 160px; }
.pg-rel .lx-rel-grid[data-n='3'] > li:not(:first-child) .lx-rel-art { height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
.pg-hero-grid, .pg-flip, .pg-caret, .pg-rel .lx-rel-sigil, .pg-wave i, .pg-mode-t, .pg-head::after, .pg-meter li b, .pg-req mark, .pg-ph::after { animation: none; transition: none; }
.pg-tiles, .pg-flip { display: none; }
.pg-cover, .pg-door > * { transform: none !important; opacity: 1 !important; animation: none !important; }
}
/* scramble overlay (enter.js useScramble): the real text stays in the DOM, unseen, while ::after draws the decode over it */
.pg-room [data-scr] { -webkit-text-fill-color: transparent; }
.pg-room [data-scr]:not(.pg-tile-n) { position: relative; }
.pg-room [data-scr]::after { content: attr(data-scr); position: absolute; inset: 0; -webkit-text-fill-color: currentColor; pointer-events: none; }
/* ---------- dark mode (docs/DARK-MODE.md): the kit's .lx tokens are literal values, so this page gives them Hanzo's
dark tokens (light values unchanged); the black room keeps its own (.lx-dark) ---------- */
.lx.pg { --ink: light-dark(#0a0a0a, var(--foreground)); --acc: light-dark(#0a0a0a, var(--foreground)); --acc-soft: light-dark(#f2f2f2, var(--surface-2)); --muted: light-dark(#525252, var(--text-secondary)); --soft: light-dark(#525252, var(--muted-foreground)); --faint: light-dark(#737373, var(--text-tertiary)); --silver: light-dark(#d4d4d4, var(--surface-3)); --card: light-dark(#f5f5f5, var(--surface-2)); --line: light-dark(rgba(0, 0, 0, .1), var(--border)); --bg: light-dark(#fff, var(--background)); }
.pg .lx-ghost { border-color: light-dark(rgba(0, 0, 0, .14), var(--border-control)); }
.pg .lx-dark .lx-ghost { border-color: rgba(255, 255, 255, .22); }
.pg .lx-dark .lx-cta { background: light-dark(#fafafa, var(--primary)); }
@media (hover: hover) { .pg .lx-dark .lx-cta:hover { background: light-dark(#fff, var(--primary)); } }
/* shared fills whose dark half reads var(--muted): under the kit's .lx root that name is a text grey, so name the fill */
.pg .lx-close-art, .pg .lx-rel-card { background: light-dark(#f5f5f5, var(--surface-2)); }
.pg .lx-rel-art { background: light-dark(#ededed, var(--surface-3)); }
@media (hover: hover) { .pg .lx-rel-card:hover { background: light-dark(#ededed, var(--surface-3)); } }
/* dark: the selected tab's text sits on a sibling motion pill; its label carries the pill's own colour (after the pill has slid in) so the ancestor walk sees what the eye sees. Light untouched. */
html:not(.light) .pg-modes button[aria-selected='true'] > span { background: var(--ink); transition: background-color 0s .3s; }