:root {
    --primary-color: #16a34a;
    /* Green */
    --secondary-color: #4ade80;
    --accent-color: #facc15;
    --background-color: #f0fdf4;
    --text-color: #14532d;
}

* {
    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: 70px;
    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;
}

.stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 8px;
    color: white;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.9;
}

.stat-value {
    font-weight: bold;
    font-family: monospace;
    font-size: 1.2rem;
}

.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-color: #e0f2fe;
    /* Sky */
    overflow: hidden;
}

.garden-bed {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 20px;
}

.ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    background-color: #854d0e;
    /* Soil */
    border-top: 5px solid #4ade80;
    /* Grass */
}

.flower {
    font-size: 0rem;
    position: relative;
    bottom: 20px;
    transition: font-size 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
}

.flower.grown {
    font-size: 4rem;
}

.flower.withered {
    font-size: 4rem;
    filter: grayscale(100%);
    transform: rotate(45deg);
    opacity: 0.5;
}

.challenge-panel {
    height: 150px;
    background: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 4px solid #bbf7d0;
    z-index: 10;
}

.sentence-box {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.gap {
    display: inline-block;
    min-width: 60px;
    border-bottom: 2px solid var(--primary-color);
    text-align: center;
    margin: 0 5px;
    color: var(--primary-color);
    font-weight: bold;
}

.options-container {
    display: flex;
    gap: 15px;
}

.option-btn {
    padding: 10px 20px;
    font-size: 1.2rem;
    border: 2px solid #bbf7d0;
    background: #f0fdf4;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: #166534;
}

.option-btn:hover {
    background: #dcfce7;
    border-color: var(--primary-color);
}

.option-btn.correct {
    background: #22c55e;
    color: white;
    border-color: #15803d;
}

.option-btn.wrong {
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.hidden {
    display: none !important;
}

/* 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;
}

.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;
}