/* The dock at the bottom and the column on the left (src/dock.js), under every sheet (z-index 4: the lowest sheet is 5): cream cards with a brown outline, like the game's
   sheets; the backpack in the middle bigger and gold. The page has the class `docked`: what sat at the bottom moves up. */
#dock { position: absolute; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 4; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 6px; max-width: 460px; margin: 0 auto; padding: 6px 7px 7px; border-radius: 22px; background: rgba(42, 26, 12, 0.55); }
#dock button, #dockcol button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; height: 58px; margin: 0; padding: 4px 2px 3px; border: 2.5px solid #3a2a22; border-radius: 16px; background: linear-gradient(#fffaf0, #f1dfbd); color: #3a2a22; font: inherit; font-size: 10px; font-weight: 900; box-shadow: 0 3px 0 rgba(58, 42, 34, 0.55); cursor: pointer; }
#dock button:active, #dockcol button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(58, 42, 34, 0.55); }
#dock button svg, #dockcol button svg { flex: none; width: 32px; height: 32px; }
#dock button span, #dockcol button span { overflow: hidden; max-width: 100%; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
#dock button.big { height: 74px; margin-top: -18px; background: linear-gradient(#ffe68f, #ffc23a); box-shadow: 0 4px 0 rgba(58, 42, 34, 0.6), inset 0 0 0 3px rgba(255, 248, 234, 0.7); font-size: 12px; }
#dock button.big svg { width: 44px; height: 44px; }
#dock button > i, #dockcol button > i { position: absolute; right: -6px; top: -7px; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid #fff8ea; border-radius: 11px; background: #e5383b; color: #fff; font-style: normal; font-size: 11px; font-weight: 900; line-height: 16px; text-align: center; }
#dock button > i[hidden], #dockcol button > i[hidden], #dockcol button[hidden] { display: none; }
#dockcol { position: absolute; left: 10px; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 4; display: flex; flex-direction: column-reverse; gap: 9px; }
#dockcol button { width: 56px; height: 56px; }
#dockcol button span { font-size: 9px; }
#dockcol #chestbtn { padding: 2px; }
#dockcol #chestbtn svg { width: 38px; height: 34px; }
/* in the opening (no base yet) the dock and the column are not there, like the old row of buttons */
#stage.prologue #dock, #stage.prologue #dockcol { display: none !important; }

/* what used to sit at the bottom edge moves above the dock */
#stage.docked #hint, #stage.docked.notools #hint, #stage.docked #powers, #stage.docked.notools #powers { bottom: calc(100px + env(safe-area-inset-bottom)); }
#stage.docked #party { bottom: calc(100px + env(safe-area-inset-bottom)); }
#stage.docked #actbtn { bottom: calc(160px + env(safe-area-inset-bottom)); }
#stage.docked #talkbtn, #stage.docked.notools #talkbtn, #stage.docked #cavebtn, #stage.docked #smithbtn, #stage.docked.notools #cavebtn, #stage.docked.notools #smithbtn { bottom: calc(216px + env(safe-area-inset-bottom)); }
#stage.docked #shopbtn, #stage.docked.notools #shopbtn, #stage.docked #shelfbtn, #stage.docked.notools #shelfbtn { bottom: calc(270px + env(safe-area-inset-bottom)); }
#stage.docked #devbtn { bottom: calc(300px + env(safe-area-inset-bottom)); }
#stage.docked.devopen:not(.notools) #bar { bottom: calc(96px + env(safe-area-inset-bottom)); }
/* during the prologue there is no dock: the old places hold */
#stage.docked.prologue #hint, #stage.docked.prologue #powers, #stage.docked.prologue #party { bottom: calc(18px + env(safe-area-inset-bottom)); }
#stage.docked.prologue #actbtn { bottom: calc(96px + env(safe-area-inset-bottom)); }
#stage.docked.prologue #talkbtn, #stage.docked.prologue #cavebtn, #stage.docked.prologue #smithbtn { bottom: calc(152px + env(safe-area-inset-bottom)); }
#stage.docked.prologue #devbtn { bottom: calc(14px + env(safe-area-inset-bottom)); }
