* { box-sizing: border-box; }
:root { font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif; }
body { margin: 0; background: #050a10; color: #f1f4ed; }body.light { background: #edf0e6; color: #242a24; }
main { position: relative; width: 100%; height: 100svh; min-height: 620px; overflow: hidden; }
canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }
a { color: inherit; text-decoration: none; }button, input { font: inherit; }:focus-visible { outline: 2px solid #7b942b; outline-offset: 4px; }
.experiment-header { position: absolute; z-index: 2; inset: 0 32px auto; height: 80px; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: 12px; }.experiment-header a { padding-block: 14px; }.experiment-brand, .experiment-id { font-size: 11px; }.experiment-id { font-family: Consolas, monospace; }
.experiment-title { position: absolute; pointer-events: none; left: 6%; top: 28%; max-width: 36%; }.experiment-title > span { font-size: 9px; opacity: .7; }h1 { font-size: 65px; line-height: 1.1; margin: 22px 0 20px; font-weight: 400; letter-spacing: 0; }h1 span { display: block; font-family: "Avenir Next", sans-serif; font-size: 24px; margin-top: 18px; }.experiment-title p { font-size: 12px; line-height: 1.9; }
.experiment-controls { position: absolute; z-index: 2; right: 28px; bottom: 28px; width: 300px; padding: 16px 20px; border: 1px solid #ffffff38; border-radius: 4px; background: #121b21c9; color: #eef2e9; backdrop-filter: blur(16px); }.light .experiment-controls { background: #f7f9f0de; color: #242a24; border-color: #242a2430; }
.controls-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }.controls-top > span { font-family: Consolas, monospace; font-size: 9px; }.control-actions { display: flex; gap: 4px; }
.icon-control { position: relative; width: 32px; height: 32px; border: 1px solid currentColor; border-radius: 3px; background: transparent; color: inherit; font-size: 0; cursor: pointer; }.icon-control::after { content: ""; display: block; width: 14px; height: 14px; margin: auto; background: url("./assets/pause.svg") center / contain no-repeat; filter: invert(1); }.light .icon-control::after { filter: none; }.icon-control.is-paused::after { background-image: url("./assets/play.svg"); }.shuffle::after { background-image: url("./assets/shuffle.svg"); }.eraser::after { background-image: url("./assets/eraser.svg"); }.icon-control:hover { background: #78896038; }
label { display: grid; grid-template-columns: 50px minmax(0, 1fr) 36px; align-items: center; gap: 12px; margin-top: 10px; font-size: 11px; }input[type="range"] { width: 100%; min-width: 0; accent-color: #8da449; cursor: pointer; }output { font-family: Consolas, monospace; font-size: 10px; text-align: right; }
.palette { display: flex; gap: 10px; margin-top: 14px; }.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; outline: 1px solid #687257; outline-offset: 2px; cursor: pointer; background: #8caaa7; }.swatch.ember { background: #ca694d; }.swatch.aurora { background: #56a184; }.swatch.active { border-color: #fff; outline: 2px solid #303f23; }
.fallback { position: absolute; inset: 35% 24px auto; text-align: center; padding: 24px; background: #eef2e7; color: #20251e; }.fallback a { text-decoration: underline; }.webgl-fallback { display: none; }.no-webgl .webgl-fallback { display: block; }.no-webgl .experiment-controls { display: none; }
@media (max-width: 700px) { main { min-height: 660px; }.experiment-header { inset-inline: 20px; height: 70px; font-size: 11px; }.experiment-brand { display: none; }.experiment-title { top: 16%; left: 24px; max-width: calc(100% - 48px); }h1 { font-size: 46px; margin-top: 18px; }h1 span { font-size: 19px; margin-top: 12px; }.experiment-title p { font-size: 11px; }.experiment-controls { left: 20px; right: 20px; bottom: 20px; width: auto; }.dark .experiment-title { top: 15%; } }
