* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #05060d;
  color: #eef0f4;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}

#flaeche {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

#anzeige {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px;
  font-size: 15px;
  color: #c6d0e6;
  pointer-events: none;
  text-shadow: 0 1px 4px #000;
}

#anzeige b { color: #ffffff; font-variant-numeric: tabular-nums; }

#kraefte {
  position: fixed;
  top: calc(max(12px, env(safe-area-inset-top)) + 28px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

#kraefte span {
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #05060d;
  border-radius: 999px;
}

[hidden] { display: none !important; }

.tafel {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px;
  text-align: center;
  background: rgba(5, 6, 13, 0.78);
  overflow-y: auto;
}

.tafel h1 { margin: 0 0 2px; font-size: 32px; letter-spacing: 0.02em; }
.tafel h2 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #9aa6c0; }
.tafel p { margin: 3px 0; max-width: 330px; line-height: 1.4; }
.hinweis, .steuerung { color: #9aa6c0; font-size: 14px; }

button {
  margin-top: 14px;
  padding: 14px 44px;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  color: #05060d;
  background: #6fe3ff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

button:active { transform: scale(0.97); }

button.klein { margin: 0; padding: 9px 16px; font-size: 14px; }

#ton {
  position: fixed;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.14);
  color: #dfe6f5;
  z-index: 5;
}

#eintrag { margin-top: 10px; }
#eintrag label { display: block; margin-bottom: 6px; font-size: 14px; color: #ffe08a; }
.zeile { display: flex; gap: 8px; justify-content: center; }

#name {
  width: 170px;
  padding: 9px 12px;
  font: inherit;
  font-size: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  -webkit-user-select: text;
  user-select: text;
}

.liste-rahmen { margin-top: 14px; width: min(300px, 100%); }

.liste {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.liste li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.liste li.neu { color: #ffe08a; font-weight: 600; }
.liste li.leer { justify-content: center; color: #7d879c; border: 0; }

.meldung { color: #ffb4ab; font-size: 14px; }

.titel { font-size: clamp(44px, 14vw, 76px) !important; font-weight: 900; letter-spacing: 0.04em !important; line-height: 0.95; color: #fff; text-shadow: 0 0 18px rgba(111, 227, 255, 0.9), 0 0 60px rgba(111, 227, 255, 0.45); }
.titel span { display: block; color: transparent; -webkit-text-stroke: 2px #6fe3ff; letter-spacing: 0.3em; margin-right: -0.3em; }

.hinweis a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(154, 166, 192, 0.5); }
