/* 像素园丁 - 8位像素风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(to bottom, #87CEEB 0%, #90EE90 100%);
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    width: 100%;
    max-width: 400px;
    padding: 10px;
}

#status-bar {
    display: flex;
    justify-content: space-around;
    background: #333;
    color: #FFD700;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 4px solid #222;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon {
    font-size: 20px;
}

#garden-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.plot {
    background: #8B4513;
    border: 4px solid #654321;
    border-radius: 8px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.1s;
}

.plot:hover {
    transform: scale(1.05);
}

.plot.empty {
    background: #A0522D;
}

.plot.seed {
    background: url('assets/seed.png') center/contain no-repeat, #8B4513;
}

.plot.sprout {
    background: url('assets/sprout.png') center/contain no-repeat, #8B4513;
}

.plot.growing {
    background: url('assets/growing.png') center/contain no-repeat, #8B4513;
}

.plot.mature {
    background: url('assets/mature.png') center/contain no-repeat, #8B4513;
}

#toolbar {
    display: flex;
    justify-content: space-around;
    background: #444;
    padding: 10px;
    border-radius: 8px;
    border: 4px solid #222;
}

.tool-btn {
    background: #555;
    color: #FFF;
    border: 2px solid #333;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.1s;
}

.tool-btn:hover {
    background: #666;
}

.tool-btn.active {
    background: #228B22;
    border-color: #1B5E20;
}

#shop-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #EEE;
    padding: 20px;
    border-radius: 8px;
    border: 4px solid #333;
    z-index: 100;
}

#shop-panel.hidden {
    display: none;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 10px 0;
    background: #DDD;
    border-radius: 4px;
}

/* 响应式 */
@media (max-width: 400px) {
    .plot {
        height: 80px;
    }
    .tool-btn {
        padding: 6px 8px;
        font-size: 12px;
    }
}