/* 像素风格UI元素 */
.pixel-box {
    background-color: #2d2b3a;
    border: 4px solid #43b5a0;
    box-shadow: 4px 4px 0 #1a1c2c;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    image-rendering: pixelated;
}

.pixel-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #43b5a0, #7cd5c3);
}

.pixel-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #43b5a0, #2d8d7c);
}

/* 像素按钮 */
.pixel-button {
    background-color: #43b5a0;
    color: #f4f4f4;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    transition: transform 0.1s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 4px 4px 0 #1a1c2c;
    border: 2px solid #f4f4f4;
}

.pixel-button:hover {
    background-color: #7cd5c3;
}

.pixel-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #1a1c2c;
}

/* 像素图标动画 */
@keyframes pixel-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.menu-icon:hover .pixel-icon {
    animation: pixel-pulse 0.5s infinite;
}

/* 像素风格的游戏图标 */
.game-icon.pixel-box {
    padding: 8px;
    background-color: #2d2b3a;
}

.game-icon.pixel-box:hover {
    background-color: #3d3b4a;
}

/* 像素风格的加载动画 */
@keyframes pixel-loading {
    0% { height: 5px; }
    50% { height: 15px; }
    100% { height: 5px; }
}

.pixel-loading {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 20px;
    gap: 3px;
}

.pixel-loading span {
    width: 5px;
    height: 5px;
    background-color: #43b5a0;
    animation: pixel-loading 0.8s infinite;
}

.pixel-loading span:nth-child(2) {
    animation-delay: 0.1s;
}

.pixel-loading span:nth-child(3) {
    animation-delay: 0.2s;
}

.pixel-loading span:nth-child(4) {
    animation-delay: 0.3s;
}

/* 像素风格的背景网格 */
.main-content {
    background-image: 
        linear-gradient(rgba(26, 28, 44, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 28, 44, 0.8) 1px, transparent 1px);
    background-size: 20px 20px;
}