* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background: #0a0a14;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* ── Name Input — unsichtbare Tastatur-Falle ── */
/* Fixiert oben links, damit iOS es nicht in den Viewport schiebt.
   Die visuelle Anzeige des Namens übernimmt ausschließlich der Canvas. */
#nameInput {
    display:        none;
    position:       fixed;
    top:            0;
    left:           0;
    width:          100%;
    height:         1px;
    padding:        0;
    margin:         0;
    border:         none;
    outline:        none;
    background:     transparent;
    color:          transparent;
    caret-color:    transparent;
    font-size:      16px;
    opacity:        0;
    pointer-events: none;
}

#gameCanvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: default;
}

/* High-res text overlay — same position as game canvas, injected by Renderer */
#textCanvas,
canvas[style*="pointer-events:none"] {
    image-rendering: auto;
}
