               [:text {} [message]]
               [:text {} [
                 [:text {} ["Press "]]
-                [Highlight {} ["space"]]
-                [:text {} [" to continue."]]]]]])))
+                [Highlight {} ["space "]]
+                [:text {} ["to continue."]]]]]])))
 
 (zc/def-component YesNoPopover
   [this]

                               :cause-of-death (get-in game-state [:world :cause-of-death])
                               :madlib madlib}])
      :game-over-rescued
        (zc/csx [GameOverRescued {:game-state game-state}]))))

(zc/def-component ShareScore
  [this]


(zc/def-component GameOverRescued
  [this]
  (let [{:keys [player rescue-mode madlib days-survived turns-survived points]} (zc/props this)
        player-name    (get player :name)
        hp             (get player :hp)
        hunger         (get player :hunger)
        max-hunger     (get player :max-hunger)
        thirst         (get player :thirst)
        max-thirst     (get player :max-thirst)
        will-to-live   (get player :will-to-live)]
    (zc/csx
	  [:terminal {} [
		[:group {:id :app} [
		  [:layer {:id :ui} [
            [:view {:style {:width "100%" :height "100%" :background-color (rcolor/color->rgb :black)}} [
              [:view {:style {:left 10}} [
                [:text {} [(format "%s: %s" player-name madlib)]]
                [:text {} [""]]
                [:text {} [(format "Points: %s." points)]]
                [:text {} [(format "Survived for %d %s. (%d turns)"
                                     days-survived
                                     (if (> 1 days-survived) "days" "day")
                                     turns-survived)]]
                [:text {} [(format "Rescued by %s after surviving for %d days." rescue-mode days-survived)]]
                [:text {} [""]]
                [:text {} ["Inventory:"]]
                [:view {} 
                  (map-indexed
                    (fn [idx item]
                      (zc/csx [:text {} [(format "%s%s" (if (pos? (get item :count 0))
                                                          (format "%dx " (get item :count))
                                                          "")
                                                        (item :name))]]))
                    (get player :inventory))]]]
                [:text {} [""]]
                [:view {:style {:left 10}} [
                  [:text {} [[:text {} ["Play again? ["]]
                             [Highlight {} ["y"]]
                             [:text {} ["/"]]
                             [Highlight {} ["n"]]
                             [:text {} ["] "]]
                             [Highlight {} ["space "]]
                             [:text {} ["- share and compare with other players"]]]]]]]]]]]]]])))

(zc/def-component GameOver
  [this]
