:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color-scheme:dark;--bg: #0c0c10;--panel: #16161e;--border: #2a2a36;--fg: #e7e7ee;--fg-dim: #8a8a98;--accent: #82c5dc;--accent-strong: #38758f;--accent-hover: #4589a8;--accent-ink: #eef7fb;--error: #ef4444}*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--bg);color:var(--fg);min-height:100vh}body{display:flex}#root{flex:1;display:flex;justify-content:center;padding:32px 24px 64px}.app{width:100%;max-width:1100px;display:flex;flex-direction:column;gap:24px}header h1.entry{margin:0 0 6px;font-family:Iowan Old Style,Palatino,Georgia,serif;font-weight:700;font-size:28px;letter-spacing:-.01em;display:flex;align-items:baseline;flex-wrap:wrap;gap:10px}header h1.entry .word{color:var(--fg)}header h1.entry .pron{font-family:Iowan Old Style,Palatino,Georgia,serif;font-weight:400;font-size:16px;color:var(--fg-dim);letter-spacing:0}header h1.entry .pos{font-family:Iowan Old Style,Palatino,Georgia,serif;font-weight:400;font-style:italic;font-size:14px;color:var(--fg-dim);letter-spacing:0}header .definition{font-family:Iowan Old Style,Palatino,Georgia,serif;font-size:16px;color:var(--fg);line-height:1.6;margin:4px 0 14px;max-width:720px}header .example{font-family:Iowan Old Style,Palatino,Georgia,serif;font-style:italic;font-size:15px;color:var(--fg-dim);line-height:1.5;margin:0 0 16px;max-width:720px}header .example em{font-style:normal;color:var(--fg-dim)}header p{margin:0 0 8px;color:var(--fg-dim);font-size:14px;line-height:1.5;max-width:720px}header p:last-child{margin-bottom:0}header em{font-style:italic}header .definition em{color:var(--fg)}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:2px dashed var(--border);border-radius:12px;padding:80px 24px;text-align:center;background:var(--panel);cursor:pointer;font-family:inherit;color:inherit;transition:border-color .12s,background .12s}.empty-state:hover{border-color:var(--accent);background:#181822}.empty-state strong{font-size:18px}.empty-state span{color:var(--fg-dim);font-size:13px}.drop-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;background:#080c12c7;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;pointer-events:none}.drop-overlay-card{border:2px dashed var(--accent);border-radius:16px;padding:56px 80px;background:#16161ed9;text-align:center;display:flex;flex-direction:column;gap:8px}.drop-overlay-card strong{font-size:22px;color:var(--accent)}.drop-overlay-card span{color:var(--fg-dim);font-size:13px}.meta,.info-meta{display:flex;flex-wrap:wrap;gap:16px 32px}.meta{padding:16px 20px;background:var(--panel);border:1px solid var(--border);border-radius:10px}.info-panel{display:flex;flex-direction:column;gap:14px;padding:16px 20px;background:var(--panel);border:1px solid var(--border);border-radius:10px;font-size:13px;line-height:1.5;color:var(--fg-dim)}.info-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:max-content max-content 1fr;column-gap:18px;row-gap:8px;align-items:baseline}.info-list li{display:contents}.info-list li.group-start>*{margin-top:10px}.info-glyph{display:inline-flex;align-items:center;justify-content:center;min-width:1em;color:var(--fg)}.info-name{color:var(--fg);font-weight:600;white-space:nowrap}.info-meta{border-top:1px solid var(--border);padding-top:14px}.meta-item{display:flex;flex-direction:column}.meta-item .label{font-size:11px;color:var(--fg-dim);text-transform:uppercase;letter-spacing:.06em}.meta-item .value{font-size:16px;font-variant-numeric:tabular-nums}.controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.controls-right{margin-left:auto;display:flex;gap:12px;align-items:center}button{background:var(--accent-strong);color:var(--accent-ink);border:0;border-radius:8px;padding:10px 18px;font-size:14px;font-weight:600;cursor:pointer;transition:background .12s,opacity .12s;display:inline-flex;align-items:center;gap:8px;line-height:1}button svg{flex-shrink:0;display:block}button:hover:not(:disabled){background:var(--accent-hover)}button:disabled{opacity:.5;cursor:not-allowed}button.secondary{background:var(--border);color:var(--fg)}button.toggle[aria-pressed=true]{background:var(--accent-strong);color:var(--accent-ink)}button.toggle[aria-pressed=false]{background:transparent;color:var(--fg-dim);box-shadow:inset 0 0 0 1px var(--border)}button.info-button{background:transparent;color:var(--fg-dim);padding:6px;font-size:18px;border-radius:999px;box-shadow:none}button.info-button:hover:not(:disabled){background:transparent;color:var(--fg)}button.info-button[aria-pressed=true]{color:var(--accent)}.shape-group{display:inline-flex;gap:2px}.shape-group button{border-radius:0}.shape-group button:first-child{border-top-left-radius:8px;border-bottom-left-radius:8px}.shape-group button:last-child{border-top-right-radius:8px;border-bottom-right-radius:8px}.link{background:none;border:0;padding:0;margin:0;font:inherit;color:var(--accent);cursor:pointer;text-decoration:underline;text-underline-offset:2px}.link:hover{color:var(--accent-strong)}.progress{display:flex;flex-direction:column;gap:6px}.progress-bar{height:4px;background:#ffffff2e;border-radius:2px;overflow:hidden}.progress-bar-fill{height:100%;background:var(--accent);transition:width 80ms linear}.progress-text{font-size:12px;color:var(--fg-dim);font-variant-numeric:tabular-nums}.preview{border:1px solid var(--border);border-radius:10px;background:#000;overflow:hidden;position:relative;width:100%}.preview .layer{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block;background:#000}.preview video.layer{object-fit:contain}.preview .cover{background:var(--panel);border-radius:inherit}.preview canvas.source{z-index:0}.preview canvas.overlay{z-index:1}.color-bar{display:block;width:100%;height:24px;border:1px solid var(--border);border-radius:6px;background:#000;image-rendering:pixelated;image-rendering:crisp-edges}.error{background:#2a1414;border:1px solid var(--error);color:#fecaca;border-radius:8px;padding:12px 16px;font-size:13px;white-space:pre-wrap}.footer-link{margin-top:24px;font-size:12px;color:var(--fg-dim);text-decoration:none;align-self:flex-start}.footer-link:hover{color:var(--accent);text-decoration:underline}.footer-links{margin-top:24px;display:flex;gap:12px;align-self:flex-start}.footer-links a,.footer-links .footer-sep{font-size:12px;color:var(--fg-dim);text-decoration:none}.footer-links a{cursor:pointer}.footer-links a:hover{color:var(--accent);text-decoration:underline}.how{min-height:100vh;display:flex;flex-direction:column;width:100%;max-width:1100px;margin:0 auto;padding:32px 24px;gap:16px}.how-in-modal{min-height:0;height:100%;padding:16px 20px 20px;max-width:none}.how-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#080c12c7;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:24px}.how-modal-panel{width:min(1100px,100%);height:min(800px,100%);background:var(--panel);border:1px solid var(--border);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}.how-close{margin-left:auto;background:transparent;color:var(--fg-dim);border:0;padding:4px 10px;font-size:22px;line-height:1;cursor:pointer;border-radius:6px}.how-close:hover{background:var(--border);color:var(--fg)}.how-header{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}.how-back{color:var(--fg-dim);text-decoration:none;font-size:14px}.how-back:hover{color:var(--accent)}.how-title{margin:0;font-family:Iowan Old Style,Palatino,Georgia,serif;font-weight:700;font-size:24px;letter-spacing:-.01em}.how-stage{flex:1;min-height:480px;border:1px solid var(--border);border-radius:10px;background:#0c0c10;overflow:hidden;position:relative}.how-tap-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;pointer-events:none;background:#00000059;color:#ffffffe6;z-index:10}.how-tap-overlay svg{filter:drop-shadow(0 2px 10px rgba(0,0,0,.5))}@media(max-width:640px){.how-modal-backdrop{padding:12px}.how-modal-panel{height:min(800px,calc(100vh - 24px));height:min(800px,calc(100svh - 24px))}.how-stage{flex:0 1 auto;min-height:0;height:50vh;height:50svh;max-height:50vh;max-height:50svh}}.how-caption{display:flex;flex-direction:column;gap:4px;min-height:56px}.how-step{font-family:Iowan Old Style,Palatino,Georgia,serif;font-size:18px;font-weight:700;color:var(--fg)}.how-body{font-size:14px;color:var(--fg-dim);line-height:1.5}.how-controls{display:flex;align-items:center;gap:12px}.how-samples{display:flex;gap:12px;align-items:center;font-size:12px}.how-samples .link[aria-pressed=true]{color:var(--fg);font-weight:600;text-decoration:none;cursor:default}.how-progress{flex:1;height:4px;background:#ffffff2e;border-radius:2px;overflow:hidden}.how-progress-fill{height:100%;background:var(--accent);transition:width 80ms linear}
