:root {
    --primary-color: #16a34a;
    /* Green */
    --secondary-color: #22c55e;
    --accent-color: #facc15;
    --background-color: #ecfdf5;
    --text-color: #064e3b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

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

#game-container {
    width: 100%;
    max-width: 800px;
    height: 100vh;
    max-height: 600px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

#game-header {
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    color: white;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

#game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #e0f2fe;
    /* Sky */
}

.sky {
    height: 40%;
    position: relative;
}

.sun,
.cloud {
    font-size: 5rem;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.5s;
}

.garden {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.soil {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    background: #78350f;
    border-top: 5px solid #16a34a;
}

.plant {
    position: relative;
    bottom: 40px;
    font-size: 3rem;
    transition: all 1s;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
}

.controls {
    height: 80px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border-top: 2px solid #cbd5e1;
    z-index: 10;
}

.ctrl-btn {
    padding: 10px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    color: white;
}

.ctrl-btn:active {
    transform: translateY(2px);
}

.water {
    background: #3b82f6;
}

.sun-btn {
    background: #facc15;
    color: #78350f;
}

.status-bars {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bar-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-container {
    width: 100px;
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.bar {
    height: 100%;
    transition: width 0.5s;
}

.bar.water {
    background: #3b82f6;
}

.bar.sun {
    background: #facc15;
}

/* Modal */
.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 320px;
}

.hidden {
    display: none !important;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 15px;
}

.btn-secondary {
    background-color: transparent;
    color: #64748b;
    border: 2px solid #cbd5e1;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 10px;
}