Skip to content

3D engine that AI agents drive

2.7 KB
Raw Blame
/* OUI controls stay plain; a small pixel accent belongs to the page background. */
body:has(.navigation) {
  --window:var(--site-bg);
  --bg:var(--site-sidebar);
  --surface:var(--site-surface);
  --text:var(--site-text);
  --muted:var(--site-muted);
  --border:var(--site-border);
  --focus:var(--site-focus);
  --site-radius:14px;
  --site-control-height:44px;
  --dither:none;
  --ambient-dither:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='white' fill-opacity='.12' d='M0 0h2v2H0zM4 4h1v1H4z'/%3E%3C/svg%3E");
  isolation:isolate;
  color:var(--text);
  background:var(--window);
}
@media (prefers-color-scheme:light) {
  body:has(.navigation) {
    --site-muted:#6e6c73;
    --ambient-dither:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='black' fill-opacity='.09' d='M0 0h2v2H0zM4 4h1v1H4z'/%3E%3C/svg%3E");
  }
}
.preview-assembly {
  padding:16px 20px;
  border-radius:16px;
  background:var(--bg);
}
body:has(.navigation)::before {
  content:'';
  position:fixed;
  top:calc(var(--navigation-height,80px) + 20px);
  right:-48px;
  width:240px;
  height:240px;
  z-index:-1;
  pointer-events:none;
  opacity:.6;
  background:var(--ambient-dither);
  mask-image:radial-gradient(ellipse at 70% 25%,black 10%,transparent 70%);
}
@media (max-width:760px) {
  body:has(.navigation)::before { width:170px; height:170px; }
}
@media (prefers-reduced-motion:no-preference) {
  body:has(.navigation)::before { animation:pixel-arrive 4s ease-out both; }
}
@keyframes pixel-arrive {
  from { opacity:0; transform:translate(12px,-12px); }
  to { opacity:.6; transform:translate(0,0); }
}
.command-row .site-button { flex:none; }
.navigation nav a, .hero-actions a, .package-links a, .footer-links a,
.site-button, .example, .docs-topic, .doc-pagination a {
  transition:transform var(--site-motion-base) var(--site-ease-out), box-shadow var(--site-motion-base) var(--site-ease-out), background-color var(--site-motion-quick) var(--site-ease-out);
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
.navigation nav a:hover, .hero-actions a:hover, .site-button:hover {
  transform:translateY(-2px);
  box-shadow:0 0 0 1px var(--line, transparent);
}
.navigation nav a:active, .hero-actions a:active, .site-button:active {
  transform:translateY(0) scale(.97);
}
.example:hover { transform:translateY(-4px); }
.example img { transition:box-shadow var(--site-motion-base) var(--site-ease-out); }
.example:hover img { box-shadow:0 0 0 1px var(--line, transparent); }
}
@media (prefers-reduced-motion:reduce) {
  .navigation nav a, .hero-actions a, .site-button, .example { transform:none !important; }
}