Rubber Band

by Chantal Roth

HTML

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <title>Twisted Rubber Band</title>

  <script src="https://cdn.jsdelivr.net/npm/three@0.124.0/build/three.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/three@0.124.0/examples/js/controls/OrbitControls.js"></script>

  <style>
    :root {
      --bg0: #051018;
      --bg1: #0c1b29;
      --panel: rgba(7, 15, 24, 0.58);
      --line: rgba(166, 214, 241, 0.16);
      --text: #eef8ff;
      --muted: rgba(232, 241, 248, 0.72);
      --cyan: #9bedff;
      --teal: #68dae9;
      --amber: #ffbc69;
      --gold: #ffe4a7;
      --rose: #ffa08f;
    }

    html, body {
      margin: 0;
      height: 100%;
      overflow: hidden;
      background:
        radial-gradient(circle at 16% 14%, rgba(255, 188, 105, 0.11), transparent 32%),
        radial-gradient(circle at 84% 82%, rgba(104, 218, 233, 0.10), transparent 34%),
        linear-gradient(180deg, #122536, var(--bg0) 58%);
      color: var(--text);
      font-family: "Avenir Next", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
    }

    #c {
      width: 100vw;
      height: 100vh;
      display: block;
    }

    #overlay {
      position: absolute;
      left: 16px;
      top: 16px;
      width: min(420px, calc(100vw - 32px));
      padding: 15px 16px;
      border-radius: 20px;
      border: 1px solid var(--line);
      background: var(--panel);
      backdrop-filter: blur(14px);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
      pointer-events: none;
    }

    #overlay h1 {
      margin: 0 0 5px 0;
      font-size: 22px;
      line-height: 1.02;
      letter-spacing: -0.03em;
    }

    #overlay .sub {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
    }

    .chipRow {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top:...