.ff-drop{display:block;border:2px dashed var(--border);border-radius:10px;padding:2rem 1rem;text-align:center;cursor:pointer;background:var(--surface-deep,transparent)}
.ff-drop.over,.ff-drop:focus-within{border-color:var(--accent-bright)}
.ff-drop input{position:absolute;opacity:0;width:1px;height:1px}
#ff-canvas{display:block;max-width:100%;height:auto;margin:1rem 0;border:1px solid var(--border);image-rendering:pixelated;background:repeating-conic-gradient(#222 0 25%,#333 0 50%) 0 0/16px 16px}
.ff-btn{display:inline-block;margin:.25rem .5rem .25rem 0;padding:.4rem .9rem;border:1px solid var(--accent);border-radius:6px;text-decoration:none}
.ff-btn:hover{border-color:var(--accent-bright)}
.ff-err{color:var(--accent-bright)}
pre.ff-spec,pre.ff-code{overflow-x:auto;padding:.8rem 1rem;border:1px solid var(--border);border-radius:8px;background:var(--surface-deep,transparent)}
table.ff-t{border-collapse:collapse;width:100%}
table.ff-t th,table.ff-t td{border-bottom:1px solid var(--border);padding:.4rem .6rem;text-align:left;vertical-align:top}
#ff-canvas[hidden]{display:none}
.ff-demo{display:flex;flex-wrap:wrap;gap:1rem;margin:1rem 0}
.ff-demo figure{margin:0;width:150px}
.ff-demo canvas,.ff-demo img{display:block;border:1px solid var(--border)}
.ff-demo figcaption{font-size:.85em;margin-top:.4rem;line-height:1.4}
