html,
body
  {
    height: 100%;
    margin: 0;
    background: #000;
    overflow: hidden;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    cursor: none; /* Mauszeiger ausblenden */
  }

#wrap
  {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
  }

/* Canvas CSS size is controlled by fitCanvas() (integer-scaled on desktop) */
canvas
  {
    display: block;
    cursor: none;
    outline: 1px solid #ffffff44;
    image-rendering: auto;
  }

/* Always-visible HTML HUD (no blur/bloom/shadow) */
.hud
  {
    position: fixed;
    left: 10px;
    top: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.18);
    line-height: 1.25;
    user-select: none;
    color: #d8f8ff;
    font-size: 12px;
    cursor: default;
  }

.hud .row
  {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6px;
  }

.hud button
  {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
  }

.hud button:hover
  {
    background: rgba(255,255,255,0.12);
  }

#hudStats
  {
    opacity: 0.95;
    white-space: pre;
  }
