:root {
    --bg-color: #fdf6e3;
    --text-color: #586e75;
    --accent-color: #859900;
    --border-color: #93a1a1;
    --disabled-color: #eee8d5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    text-align: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

header h1 {
    margin-bottom: 5px;
    color: var(--accent-color);
}

.stat-box {
    font-size: 2.5rem;
    font-weight: bold;
}

.per-second {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.click-area {
    margin: 40px 0;
    position: relative;
    display: flex;
    justify-content: center;
}

.fern-body {
    transition: transform 0.1s;
    position: relative;
}

.fern-body:active {
    transform: scale(0.95);
}

.judgment-cloud {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #eee;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    width: 120px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.fern-body:hover .judgment-cloud {
    opacity: 1;
}

.shop {
    text-align: left;
    margin-top: 30px;
    border-top: 2px solid var(--bg-color);
    padding-top: 20px;
}

.upgrade-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upgrade-btn {
    background: white;
    border: 2px solid var(--accent-color);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.upgrade-btn:hover:not(:disabled) {
    background: var(--bg-color);
}

.upgrade-btn:disabled {
    border-color: var(--border-color);
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-title {
    font-weight: bold;
    display: block;
}

.btn-desc {
    font-size: 0.8rem;
    font-style: italic;
    margin: 4px 0;
}

footer {
    margin-top: 30px;
}

.secondary-btn {
    background: none;
    border: none;
    color: #cb4b16;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.8rem;
}

.particle {
    position: absolute;
    pointer-events: none;
    animation: pop 0.8s ease-out forwards;
    color: var(--accent-color);
    font-weight: bold;
}

@keyframes pop {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(0, -50px); opacity: 0; }
}