/**
 * 小鸟飞飞飞 - 样式表
 */

/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #4EC0CA;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* ========== 游戏容器 ========== */
.game-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #4EC0CA;
    overflow: hidden;
}

/* ========== Canvas 画布 ========== */
#linkScreen {
    display: block;
    background-color: #4EC0CA;
    touch-action: none;
    border: none;
    outline: none;
}

/* ========== 横屏提示遮罩 ========== */
.landscape-mask {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100000;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    text-align: center;
}

@media screen and (orientation: landscape) and (max-height: 500px) {
    .landscape-mask {
        display: flex;
    }
    
    .landscape-mask::after {
        content: "请竖屏使用以获得最佳体验";
    }
    
    .game-container {
        display: none;
    }
}

/* ========== 隐藏滚动条 ========== */
body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========== 禁用拖拽 ========== */
img {
    -webkit-user-drag: none;
    pointer-events: none;
}

canvas {
    -webkit-user-drag: none;
}
