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

body {
    background: #000;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    color: #ccc;
    cursor: crosshair;
}

canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    image-rendering: pixelated;
}

#info {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 420px;
    font-size: 13px;
    line-height: 1.5;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    padding: 16px 20px;
    border-radius: 8px;
    z-index: 10;
    transition: opacity 0.3s;
}

#info h1 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

#info .subtitle {
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
}

#info .description {
    margin-bottom: 10px;
    color: #aaa;
}

#info .state-info {
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
}

#info .keys {
    font-size: 11px;
    color: #555;
}

#info .keys kbd {
    background: rgba(255,255,255,0.08);
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.15);
    font-family: inherit;
    color: #888;
}

#info .credit {
    margin-top: 8px;
    font-size: 10px;
}

#info .credit a {
    color: #666;
    text-decoration: none;
}

#controls {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

#controls button {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #aaa;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#controls button:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
