*{
    margin:0;
    padding:0;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* 桌面端鼠标样式 */
@media (min-width: 768px) {
    * {
        cursor:url("../img/mouse.png"),auto;
    }
}

/* 移动端隐藏鼠标样式 */
@media (max-width: 767px) {
    * {
        cursor: default;
    }
}

html, body {
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#container{
    position: relative;
    width:100%;
    height:100%;
    margin:auto;
    text-align: center;
}

/* 确保游戏元素正常显示 */
#container, #canvas {
    display: block;
}

/* 开始按钮默认显示，JavaScript可以控制隐藏 */
#startBTN, #startBTN2 {
    display: block;
}

#canvas{
    border:1px solid #c4c4c4;
}

/* 移动端特定样式 */
@media (max-width: 767px) {
    #canvas {
        border: none;
        width: 100vw !important;
        height: 100vh !important;
    }
}

/* 直接设置开始按钮的可见位置，确保在所有设备上都能显示 */
#startBTN, #startBTN2 {
    position: absolute;
    left: 50%;
    z-index: 1000; /* 确保按钮在最上层 */
    display: block;
    visibility: visible;
}

#startBTN {
    top: 45% !important;
    transform: translateX(-50%) !important;
}

#startBTN2 {
    top: 55% !important;
    transform: translateX(-50%) !important;
}

/* 确保按钮在移动端也能正常显示 */
@media (max-width: 767px) {
    .btn {
        width: 120px !important;
        height: 50px !important;
        font-size: 18px;
    }
}