body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
    background: #000;
    color: #fff;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #111;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

#text-canvas {
    pointer-events: none;
    z-index: 10;
}

.info {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.info.visible {
    opacity: 1;
    pointer-events: auto;
}

.fps-display {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 100;
    font-family: 'Courier New', monospace;
    color: #0f0;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #f00;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
}

.selected-cell {
    position: absolute;
    border: 2px solid #00aaff;
    background: rgba(0, 170, 255, 0.1);
    pointer-events: none;
    z-index: 150;
}

.cell-editor {
    position: absolute;
    border: 2px solid #00aaff;
    background: #222;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 2px 4px;
    outline: none;
    z-index: 200;
    box-sizing: border-box;
}