Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
/* Rig Doctor (/rig-doctor)
*
* Built entirely on the tokens in /tokens.css, which is what makes the page
* theme-aware for free: the light-theme block in tokens.css redefines every
* surface, ink, and stroke value, and nothing here hardcodes a colour that
* would survive that swap. The three verdict colours are the only exception,
* and they are the token set's own --success / --warn / --danger.
*
* Class prefix `rd-` throughout, so this file can never collide with the
* shared nav, footer, or mobile stylesheets loaded alongside it.
*/
/* ── Layout scale ───────────────────────────────────────────────────────── */
.rd-hero,
.rd-results,
.rd-explain {
--rd-max: 1180px;
}
.rd-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
/* ── Hero ───────────────────────────────────────────────────────────────── */
.rd-hero {
position: relative;
padding: clamp(var(--space-xl), 7vw, var(--space-2xl)) var(--space-lg) var(--space-xl);
overflow: hidden;
isolation: isolate;
}
.rd-hero-bg {
position: absolute;
inset: 0;
z-index: -1;
pointer-events: none;
}
.rd-orb {
position: absolute;
border-radius: 50%;
filter: blur(90px);
opacity: 0.5;
}
.rd-orb.a {
width: 44vw;
height: 44vw;
max-width: 520px;
max-height: 520px;
top: -14%;
left: -8%;
background: radial-gradient(circle, rgba(74, 222, 128, 0.16), transparent 70%);
}
.rd-orb.b {
width: 38vw;
height: 38vw;
max-width: 440px;
max-height: 440px;
top: 6%;
right: -10%;
background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 70%);
}
.rd-grid {
position: absolute;
inset: 0;
background-image:
linear-gradient(var(--hairline) 1px, transparent 1px),
linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
background-size: 56px 56px;
mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
opacity: 0.7;
}
.rd-hero-inner {
max-width: var(--rd-max);
margin: 0 auto;
text-align: center;
}
.rd-badge {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
padding: var(--space-2xs) var(--space-sm);
border: 1px solid var(--stroke);
border-radius: var(--radius-pill);
background: var(--surface-1);
color: var(--ink-dim);
font-family: var(--font-mono);
font-size: var(--text-2xs);
letter-spacing: 0.04em;
text-transform: uppercase;
}
.rd-badge-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--success);
box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16);
}
.rd-hero-title {
margin: var(--space-md) auto var(--space-sm);
max-width: 16ch;
font-family: var(--font-display);
font-size: clamp(2rem, 6vw, var(--text-2xl));
font-weight: var(--weight-bold);
line-height: 1.08;
letter-spacing: -0.03em;
color: var(--ink-bright);
}
.rd-hero-sub {
margin: 0 auto var(--space-lg);
max-width: 60ch;
font-size: var(--text-base);
line-height: var(--leading-normal);
color: var(--ink-dim);
}
.rd-hero-sub code,
.rd-explain-card code {
padding: 0.1em 0.36em;
border: 1px solid var(--stroke);
border-radius: var(--radius-sm);
background: var(--surface-2);
color: var(--ink);
font-family: var(--font-mono);
font-size: 0.86em;
}
/* ── Drop zone ──────────────────────────────────────────────────────────── */
.rd-drop-wrap {
max-width: 640px;
margin: 0 auto;
}
.rd-drop {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: var(--space-2xs);
padding: var(--space-xl) var(--space-lg);
border: 1.5px dashed var(--stroke-strong);
border-radius: var(--radius-lg);
background: var(--surface-1);
cursor: pointer;
transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.rd-drop:hover {
border-color: var(--ink-faint);
background: var(--surface-2);
}
.rd-drop:focus-within {
outline: 2px solid var(--accent);
outline-offset: 3px;
}
.rd-drop[data-state='dragging'] {
border-style: solid;
border-color: var(--success);
background: rgba(74, 222, 128, 0.07);
transform: scale(1.012);
box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.09);
}
.rd-drop[data-state='reading'] {
border-style: solid;
border-color: var(--stroke-strong);
cursor: progress;
}
.rd-drop[data-state='loaded'] {
border-style: solid;
border-color: var(--stroke-strong);
background: var(--surface-2);
}
.rd-file-input {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
.rd-drop-icon {
color: var(--ink-faint);
transition: color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.rd-drop:hover .rd-drop-icon,
.rd-drop[data-state='dragging'] .rd-drop-icon {
color: var(--ink-bright);
transform: translateY(-2px);
}
.rd-drop[data-state='reading'] .rd-drop-icon {
animation: rd-pulse 1.1s ease-in-out infinite;
}
@keyframes rd-pulse {
0%, 100% { opacity: 0.35; }
50% { opacity: 1; }
}
.rd-drop-title {
font-family: var(--font-display);
font-size: var(--text-lg);
font-weight: var(--weight-semibold);
color: var(--ink-bright);
overflow-wrap: anywhere;
}
.rd-drop-hint {
font-size: var(--text-md);
color: var(--ink-dim);
}
/* ── Sample rigs ────────────────────────────────────────────────────────── */
.rd-samples {
margin-top: var(--space-md);
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: var(--space-sm);
}
.rd-samples-label {
font-size: var(--text-md);
color: var(--ink-faint);
}
.rd-samples-row {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: var(--space-xs);
}
.rd-sample {
padding: var(--space-2xs) var(--space-sm);
border: 1px solid var(--stroke);
border-radius: var(--radius-pill);
background: var(--surface-1);
color: var(--ink);
font-family: var(--font-body);
font-size: var(--text-md);
cursor: pointer;
transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.rd-sample:hover {
border-color: var(--stroke-strong);
background: var(--surface-3);
color: var(--ink-bright);
}
.rd-sample:active {
transform: translateY(1px);
}
.rd-sample:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* ── Hero facts ─────────────────────────────────────────────────────────── */
.rd-hero-facts {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: var(--space-sm) var(--space-lg);
margin: var(--space-lg) 0 0;
padding: 0;
list-style: none;
font-size: var(--text-md);
color: var(--ink-faint);
}
.rd-hero-facts strong {
color: var(--ink-bright);
font-family: var(--font-mono);
font-weight: var(--weight-semibold);
}
/* ── Results shell ──────────────────────────────────────────────────────── */
.rd-results {
max-width: var(--rd-max);
margin: 0 auto;
padding: 0 var(--space-lg) var(--space-2xl);
animation: rd-rise 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rd-rise {
from { opacity: 0; transform: translateY(14px); }
to { opacity: 1; transform: none; }
}
/* ── Verdict banner ─────────────────────────────────────────────────────── */
.rd-verdict {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: start;
gap: var(--space-md);
padding: var(--space-lg);
border: 1px solid var(--rd-accent, var(--stroke));
border-radius: var(--radius-lg);
background: var(--surface-1);
margin-bottom: var(--space-lg);
}
.rd-verdict[data-level='pass'] { --rd-accent: rgba(74, 222, 128, 0.42); --rd-tint: var(--success); }
.rd-verdict[data-level='warn'] { --rd-accent: rgba(251, 191, 36, 0.42); --rd-tint: var(--warn); }
.rd-verdict[data-level='fail'] { --rd-accent: rgba(248, 113, 113, 0.42); --rd-tint: var(--danger); }
.rd-verdict-mark {
display: grid;
place-items: center;
width: 40px;
height: 40px;
border-radius: 50%;
background: color-mix(in srgb, var(--rd-tint) 16%, transparent);
color: var(--rd-tint);
}
.rd-verdict-mark svg {
width: 22px;
height: 22px;
}
.rd-verdict-body {
min-width: 0;
}
.rd-verdict-file {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-xs);
margin: 0 0 var(--space-2xs);
font-family: var(--font-mono);
font-size: var(--text-md);
color: var(--ink-faint);
overflow-wrap: anywhere;
}
.rd-verdict-word {
padding: 1px var(--space-xs);
border: 1px solid var(--rd-accent);
border-radius: var(--radius-pill);
color: var(--rd-tint);
font-size: var(--text-2xs);
letter-spacing: 0.05em;
text-transform: uppercase;
}
.rd-verdict-size {
color: var(--ink-dim);
}
.rd-verdict-headline {
margin: 0 0 var(--space-2xs);
font-family: var(--font-display);
font-size: var(--text-lg);
font-weight: var(--weight-semibold);
line-height: var(--leading-tight);
color: var(--ink-bright);
}
.rd-verdict-detail {
margin: 0;
font-size: var(--text-ui);
line-height: var(--leading-normal);
color: var(--ink-dim);
}
.rd-verdict-notes {
margin: var(--space-sm) 0 0;
padding: 0;
list-style: none;
display: grid;
gap: var(--space-2xs);
}
.rd-verdict-notes li {
position: relative;
padding-left: var(--space-md);
font-size: var(--text-md);
line-height: var(--leading-normal);
color: var(--ink-dim);
}
.rd-verdict-notes li::before {
content: '';
position: absolute;
left: 0;
top: 0.55em;
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--ink-faint);
}
.rd-verdict-notes .rd-note-fix {
color: var(--ink);
}
.rd-verdict-notes .rd-note-fix::before {
background: var(--rd-tint);
}
.rd-verdict-actions {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: var(--space-2xs);
}
.rd-action-primary {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
padding: var(--space-sm) var(--space-md);
border: 1px solid var(--rd-accent);
border-radius: var(--radius-md);
background: color-mix(in srgb, var(--rd-tint) 12%, transparent);
color: var(--ink-bright);
font-family: var(--font-body);
font-size: var(--text-ui);
font-weight: var(--weight-medium);
white-space: nowrap;
cursor: pointer;
transition: background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.rd-action-primary:hover {
background: color-mix(in srgb, var(--rd-tint) 20%, transparent);
}
.rd-action-primary:active {
transform: translateY(1px);
}
.rd-action-primary:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.rd-action-primary.is-done {
background: color-mix(in srgb, var(--success) 22%, transparent);
}
.rd-action-note {
font-family: var(--font-mono);
font-size: var(--text-2xs);
color: var(--ink-faint);
}
/* ── Two-column body ────────────────────────────────────────────────────── */
.rd-columns {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: var(--space-lg);
align-items: start;
}
.rd-col {
display: grid;
gap: var(--space-lg);
min-width: 0;
}
.rd-col-stage {
position: sticky;
top: calc(var(--header-h) + var(--space-md));
}
/* `min-width: 0` is load-bearing, not tidying. A panel is a grid item of
* .rd-col, so its default `min-width: auto` sizes it to its own min-content,
* and the generated manifest inside "Ship it" is ~460px of unbreakable
* monospace. That pushed every report panel to 463px inside a 288px column at
* 320px wide, and because <body> clips rather than scrolls, the whole right
* column was cut off the screen with no way to reach it. Pinned to the track,
* the panel fits and the <pre> scrolls inside itself, which is where a long
* line belongs. */
.rd-panel {
min-width: 0;
border: 1px solid var(--stroke);
border-radius: var(--radius-lg);
background: var(--surface-1);
padding: var(--space-md);
}
.rd-panel-head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: var(--space-xs);
margin-bottom: var(--space-md);
}
.rd-panel-title {
margin: 0;
font-family: var(--font-display);
font-size: var(--text-ui);
font-weight: var(--weight-semibold);
letter-spacing: -0.01em;
color: var(--ink-bright);
}
.rd-panel-note {
font-family: var(--font-mono);
font-size: var(--text-2xs);
color: var(--ink-faint);
text-align: right;
}
.rd-panel-foot {
margin: var(--space-sm) 0 0;
font-size: var(--text-md);
line-height: var(--leading-normal);
color: var(--ink-faint);
}
.rd-panel-foot a {
color: var(--ink);
text-decoration: underline;
text-underline-offset: 2px;
}
.rd-panel-foot a:hover {
color: var(--ink-bright);
}
/* ── Live stage ─────────────────────────────────────────────────────────── */
.rd-panel-stage {
padding-bottom: var(--space-md);
}
.rd-stage {
position: relative;
aspect-ratio: 3 / 4;
width: 100%;
border: 1px solid var(--stroke);
border-radius: var(--radius-md);
background:
radial-gradient(ellipse 70% 50% at 50% 100%, var(--surface-3), transparent 70%),
var(--bg-0);
overflow: hidden;
}
.rd-stage canvas {
display: block;
width: 100%;
height: 100%;
}
.rd-stage-status {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: var(--space-sm);
padding: var(--space-lg);
text-align: center;
font-size: var(--text-md);
color: var(--ink-dim);
transition: opacity var(--duration-base) var(--ease-standard);
}
/* Fading the status to zero opacity leaves "Building the scene" in the
accessibility tree forever, so a screen reader keeps reporting a load that
finished. `visibility` removes it for real, delayed by the fade so the
transition still plays. */
.rd-stage[data-state='ready'] .rd-stage-status {
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity var(--duration-base) var(--ease-standard), visibility var(--duration-instant) var(--ease-standard) var(--duration-base);
}
.rd-spinner {
width: 22px;
height: 22px;
border: 2px solid var(--stroke-strong);
border-top-color: var(--ink-bright);
border-radius: 50%;
animation: rd-spin 0.8s linear infinite;
}
.rd-stage-status.is-static .rd-spinner {
display: none;
}
@keyframes rd-spin {
to { transform: rotate(360deg); }
}
.rd-clips {
display: flex;
flex-wrap: wrap;
gap: var(--space-xs);
margin-top: var(--space-sm);
}
.rd-clips:empty {
margin-top: 0;
}
.rd-clip {
padding: var(--space-2xs) var(--space-sm);
border: 1px solid var(--stroke);
border-radius: var(--radius-pill);
background: var(--surface-1);
color: var(--ink-dim);
font-family: var(--font-body);
font-size: var(--text-md);
cursor: pointer;
transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.rd-clip:hover {
border-color: var(--stroke-strong);
color: var(--ink-bright);
}
.rd-clip:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.rd-clip.is-active {
border-color: var(--stroke-strong);
background: var(--surface-3);
color: var(--ink-bright);
}
/* A clip whose limb group never mapped still plays, so it gets a warning tint
* rather than a disabled state: watching the legs stay still is the proof. */
.rd-clip[data-frozen='true'] {
border-color: rgba(251, 191, 36, 0.34);
color: var(--warn);
}
.rd-stage-foot {
margin: var(--space-sm) 0 0;
font-size: var(--text-md);
line-height: var(--leading-normal);
color: var(--ink-faint);
}
/* ── Coverage groups ────────────────────────────────────────────────────── */
.rd-groups {
display: grid;
gap: var(--space-md);
}
.rd-group {
display: grid;
gap: var(--space-2xs);
cursor: default;
}
.rd-group-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: var(--space-xs);
}
.rd-group-label {
font-size: var(--text-ui);
font-weight: var(--weight-medium);
color: var(--ink);
}
.rd-group-count {
font-family: var(--font-mono);
font-size: var(--text-md);
color: var(--ink-faint);
}
.rd-group-bar {
height: 6px;
border-radius: var(--radius-pill);
background: var(--surface-3);
overflow: hidden;
}
.rd-group-fill {
display: block;
height: 100%;
border-radius: inherit;
background: var(--success);
transform-origin: left;
animation: rd-fill 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rd-fill {
from { transform: scaleX(0); }
to { transform: scaleX(1); }
}
.rd-group[data-driven='false'] .rd-group-fill {
background: var(--warn);
}
.rd-group-state {
margin: 0;
font-size: var(--text-md);
color: var(--ink-faint);
}
.rd-group[data-driven='false'] .rd-group-state {
color: var(--warn);
}
/* ── Inventory ──────────────────────────────────────────────────────────── */
.rd-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: var(--space-sm);
margin: 0;
}
.rd-stat {
padding: var(--space-sm);
border: 1px solid var(--hairline);
border-radius: var(--radius-md);
background: var(--surface-1);
cursor: default;
transition: border-color var(--duration-fast) var(--ease-standard);
}
.rd-stat:hover {
border-color: var(--stroke-strong);
}
.rd-stat dt {
font-size: var(--text-2xs);
letter-spacing: 0.05em;
text-transform: uppercase;
color: var(--ink-faint);
}
.rd-stat dd {
margin: var(--space-3xs) 0 0;
font-family: var(--font-mono);
font-size: var(--text-ui);
color: var(--ink-bright);
overflow-wrap: anywhere;
}
/* ── Renames ────────────────────────────────────────────────────────────── */
.rd-renames {
display: grid;
gap: var(--space-2xs);
}
.rd-rename {
display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
align-items: center;
gap: var(--space-xs);
font-family: var(--font-mono);
font-size: var(--text-md);
}
.rd-rename-from {
color: var(--ink-faint);
overflow-wrap: anywhere;
}
.rd-rename-arrow {
color: var(--ink-faint);
}
.rd-rename-to {
color: var(--success);
overflow-wrap: anywhere;
}
/* ── Chips ──────────────────────────────────────────────────────────────── */
.rd-chips {
display: flex;
flex-wrap: wrap;
gap: var(--space-2xs);
}
.rd-chip {
padding: 2px var(--space-xs);
border: 1px solid var(--stroke);
border-radius: var(--radius-sm);
background: var(--surface-2);
color: var(--ink-dim);
font-family: var(--font-mono);
font-size: var(--text-md);
}
.rd-chip-more {
color: var(--ink-faint);
border-style: dashed;
}
/* ── Tabs and generated output ──────────────────────────────────────────── */
.rd-tabs {
display: flex;
gap: var(--space-3xs);
padding: var(--space-3xs);
border: 1px solid var(--stroke);
border-radius: var(--radius-md);
background: var(--surface-1);
margin-bottom: var(--space-sm);
}
.rd-tab {
flex: 1;
padding: var(--space-xs) var(--space-sm);
border: 0;
border-radius: var(--radius-sm);
background: transparent;
color: var(--ink-dim);
font-family: var(--font-body);
font-size: var(--text-md);
cursor: pointer;
transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.rd-tab:hover {
color: var(--ink-bright);
}
.rd-tab:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
.rd-tab[aria-selected='true'] {
background: var(--surface-3);
color: var(--ink-bright);
}
.rd-code {
margin: 0;
padding: var(--space-sm);
max-height: 320px;
overflow: auto;
border: 1px solid var(--hairline);
border-radius: var(--radius-md);
background: var(--bg-0);
font-family: var(--font-mono);
font-size: var(--text-md);
line-height: var(--leading-normal);
color: var(--ink);
white-space: pre;
tab-size: 2;
}
.rd-copy {
margin-top: var(--space-xs);
padding: var(--space-2xs) var(--space-sm);
border: 1px solid var(--stroke);
border-radius: var(--radius-sm);
background: var(--surface-1);
color: var(--ink-dim);
font-family: var(--font-body);
font-size: var(--text-md);
cursor: pointer;
transition: border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.rd-copy:hover {
border-color: var(--stroke-strong);
color: var(--ink-bright);
}
.rd-copy:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.rd-copy.is-done {
border-color: rgba(74, 222, 128, 0.4);
color: var(--success);
}
/* ── Tooltip ────────────────────────────────────────────────────────────── */
.rd-tip {
position: fixed;
z-index: 9999;
max-width: 280px;
padding: var(--space-xs) var(--space-sm);
border: 1px solid var(--stroke-strong);
border-radius: var(--radius-md);
background: var(--bg-1);
color: var(--ink);
font-family: var(--font-body);
font-size: var(--text-md);
line-height: var(--leading-tight);
box-shadow: var(--shadow-2);
pointer-events: none;
animation: rd-tip-in 0.13s ease both;
}
@keyframes rd-tip-in {
from { opacity: 0; transform: translateY(3px); }
to { opacity: 1; transform: none; }
}
/* ── Explainer ──────────────────────────────────────────────────────────── */
.rd-explain {
border-top: 1px solid var(--hairline);
padding: var(--space-2xl) var(--space-lg);
background: var(--surface-1);
}
.rd-explain-inner {
max-width: var(--rd-max);
margin: 0 auto;
}
.rd-explain-title {
margin: 0 0 var(--space-lg);
font-family: var(--font-display);
font-size: var(--text-xl);
font-weight: var(--weight-bold);
letter-spacing: -0.02em;
color: var(--ink-bright);
}
.rd-explain-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: var(--space-md);
}
.rd-explain-card {
position: relative;
padding: var(--space-md);
border: 1px solid var(--stroke);
border-radius: var(--radius-lg);
background: var(--bg-0);
}
.rd-explain-num {
font-family: var(--font-mono);
font-size: var(--text-2xs);
color: var(--ink-faint);
}
.rd-explain-card h3 {
margin: var(--space-2xs) 0 var(--space-xs);
font-family: var(--font-display);
font-size: var(--text-ui);
font-weight: var(--weight-semibold);
color: var(--ink-bright);
}
.rd-explain-card p {
margin: 0;
font-size: var(--text-md);
line-height: var(--leading-normal);
color: var(--ink-dim);
}
/* ── Next cards ─────────────────────────────────────────────────────────── */
.rd-explain-next {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: var(--space-md);
margin-top: var(--space-lg);
}
.rd-next-card {
display: flex;
flex-direction: column;
gap: var(--space-2xs);
padding: var(--space-md);
border: 1px solid var(--stroke);
border-radius: var(--radius-lg);
background: var(--bg-0);
text-decoration: none;
transition: border-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.rd-next-card:hover {
border-color: var(--stroke-strong);
transform: translateY(-2px);
}
.rd-next-card:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.rd-next-title {
margin: 0;
font-family: var(--font-display);
font-size: var(--text-ui);
font-weight: var(--weight-semibold);
color: var(--ink-bright);
}
.rd-next-desc {
margin: 0;
flex: 1;
font-size: var(--text-md);
line-height: var(--leading-normal);
color: var(--ink-dim);
}
.rd-next-go {
display: inline-flex;
align-items: center;
gap: var(--space-2xs);
margin-top: var(--space-xs);
font-family: var(--font-mono);
font-size: var(--text-2xs);
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--ink-faint);
transition: color var(--duration-fast) var(--ease-standard), gap var(--duration-fast) var(--ease-standard);
}
.rd-next-card:hover .rd-next-go {
color: var(--ink-bright);
gap: var(--space-xs);
}
/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 940px) {
.rd-columns {
grid-template-columns: minmax(0, 1fr);
}
.rd-col-stage {
position: static;
}
.rd-stage {
aspect-ratio: 4 / 3;
}
}
@media (max-width: 640px) {
.rd-hero,
.rd-explain {
padding-left: var(--space-md);
padding-right: var(--space-md);
}
.rd-results {
padding-left: var(--space-md);
padding-right: var(--space-md);
}
.rd-verdict {
grid-template-columns: auto 1fr;
row-gap: var(--space-sm);
}
.rd-verdict-actions {
grid-column: 1 / -1;
align-items: stretch;
}
.rd-action-primary {
justify-content: center;
}
.rd-drop {
padding: var(--space-lg) var(--space-md);
}
.rd-rename {
grid-template-columns: minmax(0, 1fr);
gap: 0;
}
.rd-rename-arrow {
display: none;
}
.rd-rename-to::before {
content: '\2192\00a0';
color: var(--ink-faint);
}
}
/* Honour the OS setting: kill every decorative motion, keep every state change
* legible. The spinner becomes a static ring rather than disappearing, so a
* loading state is still distinguishable from a finished one. */
@media (prefers-reduced-motion: reduce) {
.rd-results,
.rd-group-fill,
.rd-tip {
animation: none;
}
.rd-drop,
.rd-next-card,
.rd-action-primary {
transition: none;
}
.rd-drop[data-state='dragging'] {
transform: none;
}
.rd-next-card:hover {
transform: none;
}
.rd-spinner {
animation: none;
border-top-color: var(--stroke-strong);
}
.rd-drop[data-state='reading'] .rd-drop-icon {
animation: none;
}
}