/* Wortsuche */
:root { --akzent: #7a5cff; --ws-zelle: 32px; }
html, body { height: 100%; overflow: hidden; }
body { height: 100dvh; min-height: 0; }

.ws-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; flex-wrap: wrap;
  color: var(--kl-text2); font-size: 14px; font-weight: 700; }
.ws-thema { color: var(--kl-text); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ws-thema small { color: var(--kl-text2); font-weight: 700; }
.ws-werte { display: flex; align-items: center; gap: 12px; }
.ws-werte b { color: var(--kl-text); font-variant-numeric: tabular-nums; }
.ws-tipp { padding: 6px 10px; }

.ws-main { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 10px 10px; }
.ws-main.quer { flex-direction: row; justify-content: center; align-items: center; }

.ws-brett { position: relative; flex: none; width: 300px; height: 300px; background: var(--kl-flaeche); border-radius: var(--kl-radius);
  box-shadow: var(--kl-schatten); touch-action: none; cursor: pointer; border: 1px solid var(--kl-linie); }
.ws-linien { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ws-gitter { position: absolute; inset: 0; display: grid; }
.ws-z { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: calc(var(--ws-zelle) * .56);
  color: var(--kl-text); position: relative; line-height: 1; }
.ws-z.wahl { color: #fff; }
.ws-z.erster::before, .ws-z.tipp::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; }
.ws-z.erster::before { border: 2px solid var(--akzent); }
.ws-z.tipp::before { border: 3px dashed var(--kl-gold); animation: ws-puls 1.2s infinite; }
@keyframes ws-puls { 50% { transform: scale(.85); } }
.ws-brett.wackeln { animation: ws-wackeln .25s; }
@keyframes ws-wackeln { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.ws-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start;
  gap: 6px 8px; width: 100%; max-width: 640px; overflow: auto; min-height: 0; }
.ws-main.quer .ws-liste { flex-direction: column; flex-wrap: nowrap; width: auto; min-width: 140px; max-width: 240px; max-height: 100%; }
.ws-liste li { background: var(--kl-flaeche); border: 1px solid var(--kl-linie); border-radius: 999px; padding: 5px 11px; font-weight: 800;
  font-size: 14px; letter-spacing: .04em; color: var(--kl-text); transition: opacity .3s; white-space: nowrap; }
.ws-liste li.gef { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .55; background: var(--fb); color: #fff; border-color: transparent; }
.ws-liste li.neu { animation: ws-plopp .4s; }
@keyframes ws-plopp { 40% { transform: scale(1.18); } }

/* Auswahl-Fenster (Neues Spiel) */
.ws-wahl p { margin: 4px 0 6px; font-weight: 800; color: var(--kl-text); }
.ws-stufen { display: flex; gap: 6px; margin-bottom: 10px; }
.ws-stufen button { flex: 1; padding: 9px 4px; }
.ws-stufen button.an { background: var(--akzent); color: #fff; }
.ws-wahl select { width: 100%; padding: 9px; border-radius: 10px; border: 1px solid var(--kl-linie); background: var(--kl-flaeche2);
  color: var(--kl-text); font: inherit; font-weight: 700; }
.ws-klein { font-size: 13px; color: var(--kl-text2); }
@media (prefers-reduced-motion: reduce) { .ws-z.tipp::before, .ws-brett.wackeln, .ws-liste li.neu { animation: none; } }
