body {
    background: radial-gradient(circle, #1a4a44 0%, #0d2b28 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Georgia', serif;
    color: #ffd700;
}

.game-wrapper {
    width: 100%;
    max-width: 550px;
    text-align: center;
}

.header-banner h1 {
    font-size: 3rem;
    margin: 0;
    background: linear-gradient(to bottom, #fff3b0, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.main-board {
    background: #3d0a0a; /* მუქი შინდისფერი ხის ეფექტი */
    padding: 30px;
    border: 8px solid #8b4513;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 0 20px rgba(0,0,0,0.5);
    margin-top: 20px;
    position: relative;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.box {
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #5d4037, #3e2723);
    border-radius: 10px;
    border: 2px solid #d4af37;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.box:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.box.opened {
    background: #2c0505;
    transform: rotateY(180deg);
    cursor: default;
    box-shadow: none;
}

/* Progress Bar */
.footer-controls {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-container { width: 60%; text-align: left; }
.progress-container span { font-size: 0.8rem; letter-spacing: 1px; }

.bar-bg {
    height: 12px;
    background: #1a0505;
    border-radius: 6px;
    margin-top: 5px;
    overflow: hidden;
    border: 1px solid #d4af37;
}

.bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #ffd700, #ff8c00);
    transition: width 0.5s ease;
}

button {
    background: linear-gradient(to bottom, #d43737, #8b0000);
    color: white;
    border: 2px solid #ffd700;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 0 #5a0000;
}

button:active { transform: translateY(2px); box-shadow: 0 2px 0 #5a0000; }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}

.modal {
    background: #3d0a0a;
    padding: 50px;
    border-radius: 30px;
    border: 4px solid #ffd700;
    text-align: center;
    color: #ffd700;
}

.prize-display { font-size: 6rem; margin: 20px 0; filter: drop-shadow(0 0 15px #ffd700); }