body { font-family: sans-serif; text-align: center; background: #f0f8ff; margin: 0; padding: 1rem; touch-action: manipulation; }
#game-container { max-width: 420px; margin: auto; background: white; padding: 1.5rem; border-radius: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); position: relative; z-index: 1; }
#snowman-canvas { width: 180px; height: 210px; background: #f9f9f9; border: 2px dashed #ccc; border-radius: 10px; margin: 0.5rem auto; display: block; }
.snowman-part { opacity: 0; transition: opacity 0.4s ease-in-out; }
.visible { opacity: 1; }
#parts-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1rem; position: relative; z-index: 2; }
.item { background: #ffcc00; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight: bold; user-select: none; font-size: 0.85rem; display: flex; align-items: center; gap: 5px; }
.item.selected { opacity: 0.4; pointer-events: none; background: #b0bec5; }
.wrong-shake { animation: shake 0.4s; background: #f44336 !important; color: white; }
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}
.info-btn { background: #fff; color: #333; border-radius: 50%; width: 18px; height: 18px; display: inline-flex; justify-content: center; align-items: center; font-size: 0.75rem; cursor: pointer; border: 1px solid #999; }

/* Modālais logs ar augstu z-index un pilnībā blīvu baltu fonu */
.modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 9999; }
.modal.hidden { display: none; }
.modal-content { background: #ffffff; padding: 2rem; border-radius: 12px; max-width: 300px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.modal-content p { font-size: 1rem; color: #333; line-height: 1.4; margin-bottom: 1.5rem; }
.modal-content button { background: #4caf50; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 1rem; }

#bonus-container { margin-top: 1rem; background: #e8f5e9; padding: 10px; border-radius: 8px; }
.quiz-btn { background: #2196f3; color: white; border: none; padding: 6px 12px; margin: 5px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.hidden { display: none !important; }
#message { margin-top: 1rem; font-weight: bold; font-size: 1.1rem; min-height: 1.5rem; }
