/* 拼豆 - 基础 */

.container {
            background-color: #FFFAF0;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.1);
            border: 2px solid #FFD9B3;
            position: relative;
            overflow: hidden;
        }

.container::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 60px;
            height: 60px;
            background-color: #FFE6CC;
            clip-path: polygon(100% 0, 0 0, 100% 100%);
        }

.container::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 60px;
            background-color: #FFE6CC;
            clip-path: polygon(0 100%, 0 0, 100% 100%);
        }

h1 {
            text-align: center;
            color: #FF6B6B;
            font-family: 'Press Start 2P', cursive;
            font-size: 32px;
            text-shadow: 2px 2px 0 #FFD9B3;
            margin-bottom: 30px;
            letter-spacing: -1px;
        }

button {
            padding: 12px 24px;
            font-size: 18px;
            background-color: #FF6B6B;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            margin: 5px;
            font-family: 'Comic Neue', cursive;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

button:hover {
            background-color: #FF5252;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        }

button:disabled {
            background-color: #FFD9D9;
            color: #FF9E9E;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

.instructions {
            background-color: #FFF9F0;
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
            border: 2px solid #FFE6CC;
        }

.instructions h3 {
            color: #FF8C8C;
            margin-bottom: 10px;
            font-family: 'Press Start 2P', cursive;
            font-size: 18px;
        }

.instructions ol {
            list-style-type: none;
            padding-left: 0;
        }

.instructions li {
            position: relative;
            padding-left: 30px;
            margin-bottom: 10px;
            color: #555;
        }

.instructions li::before {
            content: '🎮';
            position: absolute;
            left: 0;
            top: 0;
        }

.info {
            background-color: #FFF9F9;
            padding: 12px;
            border-radius: 8px;
            margin: 10px 0;
            font-size: 18px;
            border: 1px solid #FFD9B3;
            color: #555;
        }

@media (max-width: 768px) {
            .container {
                padding: 20px;
            }
            h1 {
                font-size: 20px;
            }
            .preview-section {
                flex-direction: column;
                align-items: center;
            }
            .preview {
                width: 90%;
            }
            img, canvas {
                max-width: 100%;
            }
            .palette-option {
                display: block;
                margin: 5px auto;
                width: 80%;
            }
        }

@keyframes pixelBounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-5px);
            }
        }

.pixel-bounce {
            animation: pixelBounce 2s infinite;
        }
