/* 游戏画布样式 */
#game-canvas {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: block;
    margin: 0 auto;
}

#editor-canvas {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 动画效果 */
@keyframes slide {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-animation {
    animation: slide 0.3s ease-out;
}

/* 按钮点击效果 */
button:active {
    transform: scale(0.95);
}

/* 移动端优化 */
@media (max-width: 768px) {
    #game-canvas {
        touch-action: none;
    }
}

/* 编辑器工具按钮 */
.editor-tool.active {
    ring: 2px;
    ring-color: #3b82f6;
    ring-offset: 2px;
    transform: scale(1.05);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 禁用文本选择 */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
