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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: #000;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 准星 */
#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 10;
}

.crosshair-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
}

.crosshair-h {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.crosshair-v {
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

/* 方块指示器 */
#block-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#block-name {
    letter-spacing: 1px;
}

/* 锁定提示 */
#lock-hint {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 50px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s;
    white-space: nowrap;
}

#lock-hint.hidden {
    opacity: 0;
}
