IDEA_FLIPPER_v1.0

Live ↗ZIP (lokal ausführbar)
index.html
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ZUFALLSPAAR</title>
<style>
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; background: #fff; color: #000; }
  body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 900;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6vh; padding: 5vw; text-align: center;
  }
  .words { display: flex; flex-direction: column; gap: 2.5vh; width: 100%; }
  .word {
    font-size: clamp(40px, 11vw, 150px);
    line-height: 1;
    letter-spacing: -0.03em;
    min-height: 1em;
    overflow-wrap: anywhere;
  }
  .label {
    font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
    margin-bottom: 1.2vh; font-weight: 900;
  }
  .plus { font-size: clamp(28px, 5vw, 60px); line-height: 1; }
  button {
    font: inherit; font-weight: 900; font-size: 18px; letter-spacing: 0.12em; text-transform: uppercase;
    background: #fff; color: #000; border: 3px solid #000; padding: 18px 44px; cursor: pointer;
  }
  button:hover { background: #000; color: #fff; }
  button:active { transform: translateY(1px); }
  .hint { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
  .spin { opacity: .35; }
</style>
</head>
<body>

<div class="words">
  <div><div class="label">Sinneseindruck</div><div class="word" id="w1">&nbsp;</div></div>
  <div class="plus">+</div>
  <div><div class="label">Digitalität</div><div class="word" id="w2">&nbsp;</div></div>
</div>

<div>
  <button id="go">Ziehen</button>
  <div class="hint" style="margin-top:14px">oder Leertaste</div>
</div>

<script>
const SINNE = [
  "schleimig", "borstig", "stachelig", "samtig", "klebrig", "pelzig", "glitschig", "körnig",
  "spröde", "zäh", "wabbelig", "gallertartig", "puderig", "wollig", "kratzig", "seidig",
  "rau", "glasig", "feucht", "lauwarm", "eisig", "fiebrig", "bleischwer", "federleicht",
  "flüsternd", "dröhnend", "summend", "knisternd", "klirrend", "schrill", "dumpf", "hallend",
  "raschelnd", "pochend", "gurgelnd", "knarzend", "wispernd", "tropfend",
  "bitter", "säuerlich", "salzig", "süßlich", "metallisch", "modrig", "rauchig", "harzig",
  "nach Ozon", "nach Regen auf Asphalt", "nach warmem Staub", "nach Gummi",
  "prickelnd", "pulsierend", "brodelnd", "gleißend", "flimmernd", "schwebend", "zitternd",
  "schwindelig", "betäubt", "sehnsüchtig", "atemlos", "verknotet", "durchlässig", "geronnen"
];

const DIGITAL = [
  "Algorithmus", "Virus", "Elektrizität", "Künstliche Intelligenz", "Cloud", "Passwort",
  "Firewall", "Pixel", "Bluetooth", "WLAN", "Datenbank", "Cookie", "Bug", "Server",
  "Netzwerk", "Feed", "Like", "Push-Nachricht", "Update", "Bit", "Cache", "Login",
  "Hashtag", "Deepfake", "Chatbot", "Prompt", "Sensor", "Datenleck", "Spam", "Shitstorm",
  "Screenshot", "Avatar", "Blockchain", "Bildschirm", "Glasfaser", "Akku", "Funkloch",
  "Clickbait", "Echtzeit", "Latenz", "Verschlüsselung", "Backup", "Trojaner",
  "Spracherkennung", "Bildrauschen", "Neuronales Netz", "Tracking", "Browserverlauf",
  "Rechenzentrum", "Quellcode", "Ping", "Stream", "Emoji", "Hologramm", "Schwarmintelligenz",
  "Gesichtserkennung", "Autokorrektur", "Endlosscrollen", "Dunkelziffer", "Zeitstempel",
  "Fehlermeldung", "Ladebalken", "Datenschatten", "Halluzination", "Trainingsdaten",
  "Mikrochip", "Kamera", "Mikrofon", "Touchscreen", "Vibration", "Signal", "Rauschen"
];

// Mischbeutel: kein Wort wiederholt sich, bis alle einmal dran waren
function bag(list) {
  let pool = [];
  return () => {
    if (!pool.length) {
      pool = list.slice();
      for (let i = pool.length - 1; i > 0; i--) {
        const j = Math.floor(Math.random() * (i + 1));
        [pool[i], pool[j]] = [pool[j], pool[i]];
      }
    }
    return pool.pop();
  };
}
const nextSinn = bag(SINNE), nextDigi = bag(DIGITAL);

const w1 = document.getElementById("w1"), w2 = document.getElementById("w2");
const btn = document.getElementById("go");
const rand = l => l[Math.floor(Math.random() * l.length)];
let busy = false;

function spinTo(el, list, finalWord, duration) {
  return new Promise(res => {
    el.classList.add("spin");
    const t0 = performance.now();
    (function tick() {
      if (performance.now() - t0 < duration) {
        el.textContent = rand(list);
        setTimeout(tick, 60);
      } else {
        el.textContent = finalWord;
        el.classList.remove("spin");
        res();
      }
    })();
  });
}

async function draw() {
  if (busy) return;
  busy = true;
  const a = nextSinn(), b = nextDigi();
  await spinTo(w1, SINNE, a, 700);
  await spinTo(w2, DIGITAL, b, 700);
  btn.textContent = "Nochmal ziehen";
  busy = false;
}

btn.addEventListener("click", draw);
document.addEventListener("keydown", e => {
  if (e.code === "Space" || e.code === "Enter") { e.preventDefault(); draw(); }
});
</script>
</body>
</html>